/* =============================================================================
   FOXYWARE — Single Product Page
   Brand: Carousel Pink #FFF5F7 / Charcoal #172605 / Wisp Pink #FFF4F7
   Type:  Playfair Display (heads), Lato (body), Pinyon Script (accents)
   ============================================================================= */

/* ---------- Brand tokens --------------------------------------------------- */
.foxyware-product-wrap {
    --fw-pink:        #FFF5F7;   /* Carousel Pink — primary background */
    --fw-pink-soft:   #FFF4F7;   /* Wisp Pink */
    --fw-pink-deep:   #FAE3E9;   /* Carousel @ ~75% saturation */
    --fw-charcoal:    #172605;   /* Primary text + buttons */
    --fw-charcoal-2:  #2D3F18;   /* 75% tint */
    --fw-sage:        #6F7E5C;   /* 50% tint */
    --fw-sage-soft:   #C8CFBC;   /* 25% tint */
    --fw-line:        #E8E1E3;   /* Hairline borders */
    --fw-cream:       #FAF7F2;   /* Gallery background */
    --fw-white:       #FFFFFF;

    --fw-radius-sm:  6px;
    --fw-radius-md:  10px;
    --fw-radius-lg:  16px;

    --fw-shadow-soft: 0 1px 2px rgba(23, 38, 5, 0.04), 0 4px 16px rgba(23, 38, 5, 0.06);
    --fw-shadow-card: 0 4px 24px rgba(23, 38, 5, 0.08);

    --fw-font-display: 'Playfair Display', 'Times New Roman', serif;
    --fw-font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fw-font-script:  'Pinyon Script', 'Allura', cursive;

    font-family: var(--fw-font-body);
    color: var(--fw-charcoal);
    background: var(--fw-white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

/* ---------- Breadcrumbs ---------------------------------------------------- */
.foxyware-breadcrumb {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fw-sage);
    margin-bottom: 28px;
    font-weight: 500;
}
.foxyware-breadcrumb a {
    color: var(--fw-sage);
    text-decoration: none;
}
.foxyware-breadcrumb a:hover {
    color: var(--fw-charcoal);
}
.foxyware-breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* ---------- Two-column grid ----------------------------------------------- */
.foxyware-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

@media (max-width: 900px) {
    .foxyware-product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .foxyware-product-wrap {
        padding: 16px 16px 56px;
    }
}

/* ---------- Gallery ------------------------------------------------------- */
.foxyware-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--fw-cream);
    border-radius: var(--fw-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}
.foxyware-gallery-main img,
.foxyware-gallery-main-img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}
.foxyware-gallery-placeholder {
    font-family: var(--fw-font-display);
    font-size: 80px;
    color: var(--fw-pink-deep);
}

.foxyware-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.foxyware-gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--fw-cream);
    border: 2px solid transparent;
    border-radius: var(--fw-radius-sm);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.foxyware-gallery-thumb img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}
.foxyware-gallery-thumb:hover {
    border-color: var(--fw-pink-deep);
}
.foxyware-gallery-thumb.is-active {
    border-color: var(--fw-charcoal);
}
.foxyware-gallery-thumb.is-empty {
    background: var(--fw-cream);
    cursor: default;
    opacity: 0.5;
}

/* ---------- Summary column ------------------------------------------------ */
.foxyware-product-summary {
    display: flex;
    flex-direction: column;
}

/* Item number — Lato bold uppercase, small */
.foxyware-item-number {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fw-sage);
    margin: 0 0 8px;
}

/* Product title — Playfair, large */
.foxyware-product-title {
    font-family: var(--fw-font-display);
    font-size: 32px;
    line-height: 1.15;
    color: var(--fw-charcoal);
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Starting price */
.foxyware-starting-price {
    font-size: 15px;
    color: var(--fw-charcoal);
    margin: 0 0 24px;
}
.foxyware-starting-price strong {
    font-family: var(--fw-font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 4px;
}
.foxyware-starting-price .foxyware-unit-label {
    color: var(--fw-sage);
    font-size: 14px;
}

/* Field labels — Lato bold uppercase mini */
.foxyware-field-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fw-charcoal);
    margin: 0 0 12px;
}

/* ---------- Color swatches ------------------------------------------------ */
.foxyware-swatch-group {
    margin-bottom: 24px;
}
.foxyware-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.foxyware-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.foxyware-swatch-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--swatch-color, #ccc);
    box-shadow: inset 0 0 0 1px rgba(23, 38, 5, 0.08);
}
.foxyware-swatch:hover {
    border-color: var(--fw-pink-deep);
}
.foxyware-swatch.is-selected {
    border-color: var(--fw-charcoal);
}
.foxyware-swatch-selected {
    font-size: 13px;
    color: var(--fw-charcoal);
    margin: 0;
}
.foxyware-swatch-selected .foxyware-selected-color-name {
    font-weight: 600;
}

/* ---------- Quantity row -------------------------------------------------- */
.foxyware-quantity-row {
    margin-bottom: 16px;
}
.foxyware-quantity-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--fw-line);
    border-radius: var(--fw-radius-md);
    background: var(--fw-white);
    overflow: hidden;
}
.foxyware-quantity-input {
    flex: 1;
    border: 0;
    padding: 14px 16px;
    font-size: 18px;
    font-family: var(--fw-font-body);
    color: var(--fw-charcoal);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}
.foxyware-quantity-input::-webkit-outer-spin-button,
.foxyware-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.foxyware-quantity-input:focus {
    background: var(--fw-pink-soft);
}
.foxyware-quantity-totals {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 8px 16px;
    background: var(--fw-pink-soft);
    border-left: 1px solid var(--fw-line);
    min-width: 140px;
    font-size: 13px;
    color: var(--fw-charcoal);
}
.foxyware-unit-price-display {
    color: var(--fw-sage);
    font-size: 12px;
}
.foxyware-est-total-display {
    font-weight: 700;
    font-size: 15px;
}

/* ---------- CTAs ---------------------------------------------------------- */
.foxyware-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.foxyware-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fw-font-body);
    letter-spacing: 0.04em;
    border-radius: var(--fw-radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
}
.foxyware-btn-primary {
    background: var(--fw-charcoal);
    color: var(--fw-white);
}
.foxyware-btn-primary:hover {
    background: var(--fw-charcoal-2);
    color: var(--fw-white);
}
.foxyware-btn-secondary {
    background: var(--fw-white);
    color: var(--fw-charcoal);
    border-color: var(--fw-charcoal);
}
.foxyware-btn-secondary:hover {
    background: var(--fw-pink-soft);
}
.foxyware-btn-icon {
    font-size: 14px;
}

.foxyware-link-subtle {
    text-align: center;
    font-size: 13px;
    color: var(--fw-sage);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 4px;
}
.foxyware-link-subtle:hover {
    color: var(--fw-charcoal);
}

/* YITH wrap — restyle their button to match ours */
.foxyware-yith-button-wrap .yith-ywraq-add-to-quote,
.foxyware-yith-button-wrap a.add-request-quote-button {
    display: block !important;
    width: 100%;
    background: var(--fw-charcoal) !important;
    color: var(--fw-white) !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    border-radius: var(--fw-radius-md) !important;
    border: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
}
.foxyware-yith-button-wrap .yith-ywraq-add-to-quote:hover,
.foxyware-yith-button-wrap a.add-request-quote-button:hover {
    background: var(--fw-charcoal-2) !important;
}

/* ---------- Spec list ----------------------------------------------------- */
.foxyware-spec-list {
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid var(--fw-line);
}
.foxyware-spec-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fw-line);
}
.foxyware-spec-row dt {
    font-size: 13px;
    color: var(--fw-sage);
    margin: 0;
    font-weight: 500;
}
.foxyware-spec-row dd {
    font-size: 14px;
    color: var(--fw-charcoal);
    margin: 0;
    font-weight: 500;
}

/* ---------- Express callout ----------------------------------------------- */
.foxyware-express-callout {
    background: var(--fw-pink);
    border-radius: var(--fw-radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--fw-charcoal);
}
.foxyware-callout-icon {
    color: var(--fw-charcoal);
    font-size: 14px;
}
.foxyware-callout-link {
    color: var(--fw-charcoal);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* ---------- Tier pricing table -------------------------------------------- */
.foxyware-tier-pricing {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}
.foxyware-tier-pricing thead th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fw-sage);
    padding: 8px 12px;
    border-bottom: 1px solid var(--fw-line);
}
.foxyware-tier-pricing thead th:nth-child(2),
.foxyware-tier-pricing thead th:nth-child(3) {
    text-align: right;
}
.foxyware-tier-pricing tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--fw-line);
    color: var(--fw-charcoal);
}
.foxyware-tier-pricing tbody td:nth-child(2),
.foxyware-tier-pricing tbody td:nth-child(3) {
    text-align: right;
}
.foxyware-tier-pricing tbody tr.is-highlighted {
    background: var(--fw-pink);
}
.foxyware-tier-pricing tbody tr.is-active {
    background: var(--fw-pink-deep);
    font-weight: 700;
}
.foxyware-tier-label {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: var(--fw-charcoal);
    color: var(--fw-white);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    border-radius: 999px;
    font-weight: 600;
}

/* ---------- Add-on row ---------------------------------------------------- */
.foxyware-addon-row {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: var(--fw-cream);
    border-radius: var(--fw-radius-sm);
    font-size: 13px;
    color: var(--fw-charcoal);
}
.foxyware-addon-row strong {
    font-weight: 700;
}
.foxyware-addon-price {
    color: var(--fw-charcoal);
    font-weight: 600;
}

/* ---------- About section -------------------------------------------------- */
.foxyware-about-product {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--fw-line);
}
.foxyware-section-heading {
    font-family: var(--fw-font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--fw-charcoal);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}
.foxyware-product-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--fw-charcoal);
    max-width: 720px;
    margin-bottom: 24px;
}
.foxyware-product-description p {
    margin: 0 0 12px;
}

/* ---------- Perfect-for pills --------------------------------------------- */
.foxyware-perfect-for {
    margin-top: 16px;
}
.foxyware-pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.foxyware-pill {
    padding: 8px 14px;
    background: var(--fw-pink);
    color: var(--fw-charcoal);
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--fw-pink-deep);
}

/* ---------- Related products ---------------------------------------------- */
.foxyware-related-products {
    margin-top: 64px;
}
.foxyware-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 700px) {
    .foxyware-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .foxyware-related-grid {
        grid-template-columns: 1fr;
    }
}
.foxyware-related-card {
    text-decoration: none;
    color: var(--fw-charcoal);
    background: var(--fw-white);
    border-radius: var(--fw-radius-md);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.foxyware-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fw-shadow-card);
}
.foxyware-related-image {
    aspect-ratio: 1 / 1;
    background: var(--fw-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.foxyware-related-image img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}
.foxyware-related-title {
    font-family: var(--fw-font-body);
    font-size: 15px;
    font-weight: 600;
    margin: 14px 14px 4px;
}
.foxyware-related-cta {
    font-size: 12px;
    color: var(--fw-sage);
    margin: 0 14px 16px;
}

/* ---------- Mobile tweaks -------------------------------------------------- */
@media (max-width: 600px) {
    .foxyware-product-title {
        font-size: 26px;
    }
    .foxyware-spec-row {
        grid-template-columns: 110px 1fr;
    }
    .foxyware-quantity-totals {
        min-width: 100px;
    }
}
