/*----------------------------------------------------------
  0. CONFIGURATION VARIABLES
  ----------------------------------------------------------*/
:root {
    /* Brand palette */
    --cozzicotton-primary: #B89658;
    --cozzicotton-primary-hover: #947844;
    --cozzicotton-gold: #d4af37;

    --gallery-max-w-desktop: 42vw;
    --gallery-max-w-tablet: 60vw;
    --frame-h-desktop: 480px;
    --frame-h-phone: 340px;
    --dot-gap: -36px; /* vertical gap below frame */
}

/*----------------------------------------------------------
  1. OUTER WRAPPER
  ----------------------------------------------------------*/
#artworkCarousel {
    max-width: var(--gallery-max-w-desktop);
    width: 100%;
    margin: 0 auto 2rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    #artworkCarousel {
        max-width: var(--gallery-max-w-tablet);
    }
}

@media (max-width: 575.98px) {
    #artworkCarousel {
        max-width: 100%;
    }
}

/*----------------------------------------------------------
  2. FIXED-HEIGHT FRAME
  ----------------------------------------------------------*/
#artworkCarousel .carousel-inner {
    height: var(--frame-h-desktop);
    background: #fff; /* white canvas */
}

@media (max-width: 575.98px) {
    #artworkCarousel .carousel-inner {
        height: var(--frame-h-phone);
    }
}

/*----------------------------------------------------------
  3. SLIDE + IMAGE – centred for active, next, prev
  ----------------------------------------------------------*/
/* base dimensions */
#artworkCarousel .item {
    width: 100%;
    height: 100%;
}

/* flex centring ON for active + the two sliding neighbours */
#artworkCarousel .item.active,
#artworkCarousel .item.next,
#artworkCarousel .item.prev {
    display: flex !important; /* keep Bootstrap's display:block override */
    align-items: center;
    justify-content: center;
}

/* natural-size image inside the frame */
#artworkCarousel .item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: none;
}

/*----------------------------------------------------------
  4. ARROW CONTROLS
  ----------------------------------------------------------*/
#artworkCarousel .carousel-control {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    width: auto;
    opacity: 1;
    top: 45%;
}

#artworkCarousel .carousel-control span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #bbb;
    border-radius: 50%;
    background: #fff;
    color: #555;
    transition: background .25s, color .25s;
}

#artworkCarousel .carousel-control:hover span {
    background: #f5f5f5;
    color: #333;
}

#artworkCarousel .carousel-control .glyphicon {
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/*----------------------------------------------------------
  5. THUMBNAIL INDICATORS (replace dots)
  ----------------------------------------------------------*/
#artworkCarousel .carousel-indicators {
    position: static; /* place thumbs below the frame */
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 12px 0 0;
    padding-left: 0;
    text-align: left;
    overflow-x: auto; /* allow horizontal scroll on narrow screens */
    white-space: nowrap;
}

#artworkCarousel .carousel-indicators li {
    display: inline-block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    margin: 0 8px 0 0;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06) inset;
    cursor: pointer;
}

#artworkCarousel .carousel-indicators .active {
    border-color: #B89658; /* brand orange highlight */
}

/* Mobile (<=767px) */
@media (max-width: 767px) {
    #artworkCarousel .carousel-indicators li {
        width: 54px;
        height: 54px;
        border-radius: 6px;
        margin-right: 6px;
    }
}

/* Tablet & up (>=768px) */
@media (min-width: 768px) {
    #artworkCarousel .carousel-indicators li {
        width: 64px;
        height: 64px;
    }
}

/* Desktop (>=992px) */
@media (min-width: 992px) {
    #artworkCarousel .carousel-indicators {
        text-align: center; /* center the row of thumbs */
        overflow-x: visible; /* no horizontal scroll on wide screens */
        margin-left: auto; /* ensure true centering of the strip */
        margin-right: auto;
    }

    #artworkCarousel .carousel-indicators li {
        width: 72px;
        height: 72px;
    }
}

/*----------------------------------------------------------
  6. OPTIONAL – CLEAN THUMBNAILS (if you add them later)
  ----------------------------------------------------------*/
#artworkCarousel .thumbnail,
#artworkCarousel .thumbnail img {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/*----------------------------------------------------------
  7. TYPOGRAPHY — Product title & price use Playfair Display
  ----------------------------------------------------------*/
.product_page .product_main h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.price_color {
    color: var(--cozzicotton-gold);
}

.product_page .product_main .price_color {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.1;
    margin: 6px 0 8px;
}

/* Mobile (<=767px) */
@media (max-width: 767px) {
    .product_page .product_main h1 {
        font-size: 28px;
    }

    .product_page .product_main .price_color {
        font-size: 24px;
    }
}

/* Tablet & up (>=768px) */
@media (min-width: 768px) {
    .product_page .product_main h1 {
        font-size: 36px;
    }

    .product_page .product_main .price_color {
        font-size: 30px;
    }
}

/* Desktop (>=992px) */
@media (min-width: 992px) {
    .product_page .product_main h1 {
        font-size: 36px;
    }

    .product_page .product_main .price_color {
        font-size: 40px;
    }
}

/*----------------------------------------------------------
  8) OUT-OF-STOCK (Notify-me) PANEL – scoped to the alert form
  ----------------------------------------------------------*/
.oos-alert-panel .oos-intro {
    margin: 10px 0 14px;
    color: #6b7280;
    max-width: 46ch;
}

/* Brand button */
.oos-alert-panel .btn-notify {
    background-color: #B89658;
    border-color: #B89658;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 22px;
    transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

.oos-alert-panel .btn-notify:hover {
    background-color: var(--cozzicotton-primary-hover);
    border-color: var(--cozzicotton-primary-hover);
    box-shadow: 0 6px 16px rgba(246, 162, 37, .35);
}

.oos-alert-panel .btn-notify:focus {
    background-color: var(--cozzicotton-primary-hover);
    border-color: var(--cozzicotton-primary-hover);
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 162, 37, .30);
}

.oos-alert-panel .btn-notify:active {
    transform: translateY(1px);
}

.oos-actions {
    margin-top: 14px;
}

/* Tidy the generic Oscar "form-horizontal" layout within the alert form */
#alert_form .form-group {
    margin-bottom: 12px;
}

#alert_form .control-label {
    font-weight: 600;
}

#alert_form input[type="email"],
#alert_form input[type="text"] {
    height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#alert_form input[type="email"]:focus,
#alert_form input[type="text"]:focus {
    border-color: #B89658;
    box-shadow: 0 0 0 3px rgba(246, 162, 37, .15);
    outline: none;
}

#alert_form ::placeholder {
    color: #9aa3af;
}


/* Mobile (<=767px) – stack label above input and make CTA full-width */
@media (max-width: 767px) {
    #alert_form .control-label {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        padding-top: 0 !important;
        margin-bottom: 6px;
    }

    #alert_form .col-sm-8 {
        float: none !important;
        width: 100% !important;
    }

    .oos-alert-panel .btn-notify {
        width: 100%;
    }
}

/* Tablet & desktop (>=768px) – keep the two-column form look */
@media (min-width: 768px) {
    /* Make the INNER .row a flex line so label & input sit on one row */
    #alert_form .form-group > .row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Override Bootstrap's col width on the label */
    #alert_form .form-group > .row > label {
        float: none !important;
        width: auto !important; /* cancel .col-sm-4 33.333% width */
        margin: 0 16px 0 0; /* gap between label and input */
        padding-top: 0;
        text-align: left;
        white-space: nowrap; /* keep on one line */
        flex: 0 0 auto;
    }

    /* Let the input column expand */
    #alert_form .form-group > .row > .col-sm-8 {
        float: none !important;
        width: auto !important; /* cancel .col-sm-8 66.666% width */
        flex: 1 1 auto;
    }

    #alert_form .form-group > .row > .col-sm-8 .form-control {
        width: 100%;
    }
}

/*----------------------------------------------------------
  8. RECENTLY VIEWED – Responsive carousel with 3D hover
  ----------------------------------------------------------*/
.rv-wrap {
    margin-top: 24px;
}

.rv-carousel {
    position: relative;
    margin-bottom: 20px;
}

.rv-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 2px;
}

.rv-card {
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    flex: 0 0 70%; /* mobile default */
    max-width: 70%;
}

@media (min-width: 768px) {
    /* tablet */
    .rv-card {
        flex-basis: 32%;
        max-width: 32%;
    }
}

@media (min-width: 992px) {
    /* desktop */
    .rv-card {
        flex-basis: 20%;
        max-width: 20%;
    }
}

.rv-img {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transform-style: preserve-3d;
    perspective: 900px;
}

.rv-img img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
}
/*----------------------------------------------------------
  Recommended Products  –
  ----------------------------------------------------------*/
.rv-meta {
    padding: 10px 2px 0;
}

.rv-title {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    color: black;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0px;
    margin-bottom: 2px;
}
/* Recommended / Recently-viewed carousel links: no underline */
.rv-card,
.rv-card:hover,
.rv-card:focus {
    text-decoration: none !important;
}

/* Title hover color */
.rv-card:hover .rv-title,
.rv-card:focus .rv-title {
    color: var(--cozzicotton-primary-hover);
}

.rv-price {
    margin-top: 2px;
    font-weight: 700;
    color:var(--cozzicotton-primary-hover)
}

@media (max-width: 767px) {
    .rv-img img {
        height: 200px;
    }

    /* phones */
}

.rv-card:hover .rv-img img {
    transform: translateY(-6px) scale(1.06) rotateX(.6deg) rotateY(-.6deg);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
}

/* nav buttons (hidden on phones; swipe instead) */
.rv-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #bbb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 1;
}

.rv-nav:hover {
    background: #f5f5f5;
}

.rv-nav.prev {
    left: -10px;
}

.rv-nav.next {
    right: -10px;
}

@media (max-width: 767px) {
    .rv-nav {
        display: none;
    }
}

/* 8.2 Recently Viewed – polish */
.rv-track {
    scrollbar-width: none; /* Firefox */
}

.rv-track::-webkit-scrollbar { /* WebKit */
    display: none;
}

/* slightly gentler 3D hover so it feels less “pop out” */
.rv-card:hover .rv-img img {
    transform: translateY(-4px) scale(1.045) rotateX(.4deg) rotateY(-.4deg);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .16);
}

/* nudge in a bit more spacing between cards on wide screens */
@media (min-width: 992px) {
    .rv-track {
        gap: 16px;
    }
}

/* 8.3 Recently Viewed – arrow positioning */
.rv-nav {
    z-index: 2;
}

/* be on top of images */
.rv-nav.prev {
    left: -6px;
}

/* slightly inside the container */
.rv-nav.next {
    right: -6px;
}

/*----------------------------------------------------------
  10. SPECS (Primary + Secondary)  — Clean, single-column flow
  ----------------------------------------------------------*/
/* card wrapper for the primary specs block */
.specs-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
}

/*----------------------------------------------------------
  10.1 PURCHASE BENEFITS (Trust / Delivery / Returns)
  ----------------------------------------------------------*/
.cc-benefits {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}


.cc-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.cc-benefits-list li {
  position: relative;
  padding-left: 34px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.cc-benefits-title {
  display: block;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #1f2937;
}

.cc-benefits-sub {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}


/* gold check badge (no green) */
.cc-benefits-list li::before {
  width: 18px;
  height: 18px;
  top: 3px;
  border: 2px solid #B89658;
  background: rgba(184, 150, 88, 0.08);
}


.cc-benefits-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #B89658;
  border-bottom: 2px solid #B89658;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .cc-benefits-list {
    grid-template-columns: 1fr;
  }
}

/* panel/header polish for the collapsible secondary block */
.specs-panel .panel-heading {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.specs-panel .panel-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.specs-panel .panel-title a .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(-45deg);
  margin-left: 8px;
  transition: transform .2s ease;
}
.specs-panel .panel-title a[aria-expanded="true"] .chevron {
  transform: rotate(135deg); /* points up when expanded */
}

/* lightweight tags for styles in secondary */
.spec-tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 6px 6px 0;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 11px;
  line-height: 18px;
  background: #f8f9fa;
  color: #495057;
}

/* containers */
.specs-primary dl,
#product-more-details dl { margin-top: 8px; margin-bottom: 0; }

/* labels */
.specs-primary dl.dl-horizontal dt,
#product-more-details dl.dl-horizontal dt {
    float: left;          /* Bootstrap 3 model */
    clear: left;          /* start each row cleanly */
    width: 180px;         /* label column width */
    color: #7a7f86;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: .2px;
}
/* add a small dot to color chips; can be extended with mappings */
.color-chip[data-color]::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid rgba(0,0,0,.15);
  background: #e0e0e0; /* default fallback */
  vertical-align: -1px;
}

/* simple name → color mappings (extend as needed) */
.color-chip[data-color="black"]::before { background: #000; }
.color-chip[data-color="white"]::before { background: #fff; }
.color-chip[data-color="brown"]::before { background: #8B4513; }
.color-chip[data-color="blue"]::before  { background: #1E90FF; }
.color-chip[data-color="red"]::before   { background: #D9534F; }
.color-chip[data-color="green"]::before { background: #5CB85C; }
.color-chip[data-color="yellow"]::before{ background: #F0AD4E; }
.color-chip[data-color="orange"]::before{ background: #B89658; }
.color-chip[data-color="purple"]::before{ background: #6f42c1; }
.color-chip[data-color="grey"],
.color-chip[data-color="gray"]::before  { background: #6c757d; }

/* values */
.specs-primary dl.dl-horizontal dd,
#product-more-details dl.dl-horizontal dd {
    margin-left: 200px;   /* label width + 20px gutter */
    line-height: 1.5;
    overflow: hidden;     /* avoid float collision on wraps */
}

/* clear floats around the blocks */
.specs-primary::after { content: ""; display: table; clear: both; }
#product-more-details { clear: both; margin-top: 10px; }
#product-more-details .panel-heading { padding: 8px 12px; }
#product-more-details .panel-title a { display: block; text-decoration: none; }

/* badges */
.specs-primary .label {
    display: inline-block;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}
.specs-primary .label-success {
    background-color: var(--cozzicotton-primary);
    border-color: var(--cozzicotton-primary);
    color: #fff;
}
.specs-primary .label-default {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #d9dee3;
}

/* dominant color chips (text version for now) */
.color-chip {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 6px 6px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 11px;
    line-height: 18px;
    background: #f8f9fa;
}

/* responsive collapse: let dl-horizontal stack nicely on phones */
@media (max-width: 767px) {
    .specs-primary dl.dl-horizontal dt,
    #product-more-details dl.dl-horizontal dt {
        float: none;
        width: auto;
        text-align: left;
    }
    .specs-primary dl.dl-horizontal dd,
    #product-more-details dl.dl-horizontal dd {
        margin-left: 0;
    }
}

/*----------------------------------------------------------
  11. ARTIST BYLINE — under product title (optional avatar)
  ----------------------------------------------------------*/
.product-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px; /* tight, so price stays dominant */
}

.product-byline .byline-avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 28px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
}
.product-byline .byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-byline .byline-text {
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.product-byline .byline-name {
  font-size: 13px;
  color: #6c757d;            /* muted */
  text-decoration: none;
}
.product-byline .byline-name:hover,
.product-byline .byline-name:focus {
  text-decoration: underline;
  color: #4a4d4e;            /* your grey */
}

.product-byline .byline-profile {
  font-size: 11px;
  color: #8a8f94;            /* lighter muted */
  text-decoration: none;
  margin-top: 2px;
}
.product-byline .byline-profile:hover,
.product-byline .byline-profile:focus {
  text-decoration: underline;
  color: #4a4d4e;
}

/* If there’s no avatar, keep spacing tidy */
.product-byline:not(:has(.byline-avatar)) {
  gap: 6px;
}

/* Slightly increase breathing room between title → byline → price */
.product_page .product_main h1 + .product-byline {
  margin-top: 6px;  /* top of byline */
  margin-bottom: 8px;
}

/* Mobile: keep it compact */
@media (max-width: 767px) {
  .product-byline { gap: 8px; }
  .product-byline .byline-name { font-size: 12px; }
  .product-byline .byline-profile { font-size: 10px; }
}
/* --- Artist byline: final polish (spacing, a11y, mobile one-line) --- */

/* Slightly more breathing room below the byline so price doesn’t crowd it */
.product_page .product_main h1 + .product-byline {
  margin-bottom: 10px; /* was 8px in our base rules */
}

/* Make link states obvious (keyboard + hover) */
.product-byline a:focus-visible {
  outline: 2px solid var(--cozzicotton-primary, #B89658);
  outline-offset: 2px;
  border-radius: 4px;
}
.product-byline a:hover {
  text-decoration: underline;
}

/* Mobile: keep the byline on one line and protect layout */
@media (max-width: 480px) {
  .product-byline {
    white-space: nowrap;
    overflow: hidden;
  }
  .product-byline .byline-text {
    display: block;
    overflow: hidden;           /* so ellipsis works on the name */
  }
  .product-byline .byline-name {
    display: block;
    text-overflow: ellipsis;    /* truncate long artist names */
    overflow: hidden;
    max-width: 100%;
  }
  /* If you’re showing a secondary link, hide it on very small screens */
  .product-byline .byline-profile {
    display: none;
  }
}

/* Add to Cart Button */
#add_to_basket_form .btn:hover {
    background: var(--cozzicotton-primary-hover) !important;
}
