/* =============================================
   AOA NICE — WooCommerce CSS Overrides
   Makes WooCommerce default classes look like
   our custom design classes.
   ============================================= */

/* ---- ADD TO CART BUTTON ---- */
/* WooCommerce renders: <button class="single_add_to_cart_button button alt"> */
/* We style it to match .btn-add-cart */
.single_add_to_cart_button,
.single_add_to_cart_button.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce button.button.alt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 11px 16px !important;
    border-radius: 8px !important;
    background: var(--text, #1a1a1a) !important;
    color: var(--bg, #fff) !important;
    border: 2px solid var(--text, #1a1a1a) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: var(--font-body) !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--white) !important;
}

/* ---- QUANTITY INPUT ---- */
.woocommerce .quantity .qty {
    width: 50px !important;
    height: 44px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    outline: none !important;
    background: var(--white) !important;
}

.woocommerce .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    margin-right: 12px !important;
}

/* ---- ADD TO CART FORM ROW ---- */
.woocommerce form.cart {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

.woocommerce form.cart .single_add_to_cart_button {
    flex: 1 !important;
    min-width: 160px !important;
}

/* ---- PRODUCT GALLERY ---- */
/* WooCommerce gallery: remove default styles, apply ours */
.woocommerce-product-gallery {
    width: 100% !important;
    position: relative !important;
}

.woocommerce-product-gallery__image {
    cursor: zoom-in !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    background: var(--light-gray) !important;
}

.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 520px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: var(--radius) !important;
    transition: transform 0.4s ease !important;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.06) !important;
}

/* Gallery thumbnails */
.woocommerce-product-gallery__thumbs .swiper-slide,
.woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    opacity: 1 !important;
    border-color: var(--gold) !important;
}

/* ---- VARIATION SELECTS ---- */
.woocommerce .variations select,
.woocommerce .variations td select {
    padding: 10px 14px !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    background: #fafafa !important;
    outline: none !important;
    cursor: pointer !important;
    min-width: 160px !important;
    transition: border-color 0.18s ease !important;
}

.woocommerce .variations select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1) !important;
}

.woocommerce .variations td.label label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #888 !important;
}

.woocommerce .variations {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    margin-bottom: 8px !important;
}

/* ---- PRICE DISPLAY — Industry Standard Sale Pricing ---- */

/* Container — flex row, sale price first, original second */
.woocommerce .product .price,
.woocommerce-page .product .price,
.aoa-product-price .price,
.aoa-product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    line-height: 1.2 !important;
}

/* ── DEL (original crossed-out price) — all three levels must be grey ── */
.woocommerce .product .price del,
.woocommerce-page .product .price del,
.aoa-product-price del,
.product-card .price del,
.products-grid .product-card .price del {
    color: #999 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    text-decoration-color: #d32f2f !important;
    text-decoration-thickness: 2px !important;
    opacity: 1 !important;
    order: 2 !important;
}

.product-card .price del .woocommerce-Price-amount,
.product-card .price del .woocommerce-Price-amount bdi,
.product-card .price del bdi,
.products-grid .product-card .price del .woocommerce-Price-amount,
.products-grid .product-card .price del .woocommerce-Price-amount bdi,
.products-grid .product-card .price del bdi {
    color: #999 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
}

/* ── INS (sale price) — black, bold ── */
.woocommerce .product .price ins,
.woocommerce-page .product .price ins,
.aoa-product-price ins,
.product-card .price ins,
.products-grid .product-card .price ins {
    text-decoration: none !important;
    background: none !important;
    order: 1 !important;
}

/* Product card: black, prominent */
.product-card .price ins .woocommerce-Price-amount,
.product-card .price ins .woocommerce-Price-amount bdi,
.product-card .price ins bdi,
.products-grid .product-card .price ins .woocommerce-Price-amount,
.products-grid .product-card .price ins .woocommerce-Price-amount bdi,
.products-grid .product-card .price ins bdi {
    color: #111 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Product detail page: black, large */
.woocommerce.single-product .product .price ins .woocommerce-Price-amount,
.woocommerce.single-product .product .price ins .woocommerce-Price-amount bdi,
.woocommerce.single-product .product .price ins bdi,
.aoa-product-price ins .woocommerce-Price-amount,
.aoa-product-price ins .woocommerce-Price-amount bdi,
.aoa-product-price ins bdi {
    color: #111 !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
}

/* Product detail page: smaller grey original */
.woocommerce.single-product .product .price del .woocommerce-Price-amount,
.woocommerce.single-product .product .price del .woocommerce-Price-amount bdi,
.woocommerce.single-product .product .price del bdi,
.aoa-product-price del .woocommerce-Price-amount,
.aoa-product-price del .woocommerce-Price-amount bdi,
.aoa-product-price del bdi {
    color: #999 !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}

/* Regular (non-sale) price on cards — black, same size as sale price */
.product-card .price>.woocommerce-Price-amount,
.product-card .price>.woocommerce-Price-amount bdi,
.product-card .price>.product-regular-price,
.product-card .price>.product-regular-price .woocommerce-Price-amount,
.product-card .price>.product-regular-price bdi,
.products-grid .product-card .price>.woocommerce-Price-amount,
.products-grid .product-card .price>.woocommerce-Price-amount bdi {
    color: #111 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Regular (non-sale) price on single product page — bare span directly in aoa-product-price */
.aoa-product-price>.woocommerce-Price-amount,
.aoa-product-price>.woocommerce-Price-amount bdi,
.aoa-product-price>bdi {
    color: #111 !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
}

/* Savings badge */
.savings-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 3px !important;
}

.save-percentage {
    display: inline-block !important;
    background: #d32f2f !important;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    letter-spacing: 0.3px !important;
}

.save-amount {
    font-size: 0.73rem !important;
    color: #d32f2f !important;
    font-weight: 600 !important;
}

/* ---- NOTICES (out of stock etc.) ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--gold) !important;
    font-family: var(--font-body) !important;
    font-size: 0.88rem !important;
    border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* ---- PRODUCT CARD on Shop page ---- */
/* WooCommerce adds its own classes — map to ours */
.woocommerce ul.products li.product {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

/* ---- PAGINATION ---- */
.woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
}

.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 6px !important;
    list-style: none !important;
    padding: 0 !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: var(--radius) !important;
    border: 1px solid #ddd !important;
    font-size: 0.85rem !important;
    color: var(--dark) !important;
    transition: all 0.18s ease !important;
    text-decoration: none !important;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--white) !important;
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
    .woocommerce-product-gallery__image img {
        height: 280px !important;
    }

    .woocommerce form.cart {
        flex-direction: column !important;
    }

    .woocommerce .quantity {
        align-self: flex-start !important;
    }

    .woocommerce form.cart .single_add_to_cart_button {
        width: 100% !important;
    }
}

/* =============================================
   PREMIUM PRODUCT DETAIL PAGE LAYOUT
   ============================================= */

.product-detail-page {
    padding: 40px 0 80px;
    background: var(--white);
}

/* Breadcrumb */
.aoa-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.aoa-breadcrumb a {
    color: var(--gold);
    transition: opacity 0.18s ease;
}

.aoa-breadcrumb a:hover {
    opacity: 0.75;
}

.aoa-breadcrumb span {
    color: #ccc;
}

.aoa-breadcrumb .aoa-breadcrumb-current {
    color: var(--dark);
    font-weight: 500;
}

/* Two-column grid */
.aoa-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 50px;
}

/* ---- GALLERY COLUMN ---- */
.aoa-product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-zoom-hint-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 10px;
    justify-content: center;
    letter-spacing: 0.3px;
}

/* ---- INFO COLUMN ---- */
.aoa-product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Tags row */
.aoa-product-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.aoa-cat-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--gold);
}

.aoa-sub-tag {
    background: #f0f0f0;
    color: var(--gray);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 9px;
    border-radius: 20px;
}

.aoa-sale-tag {
    background: var(--gold);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Title */
.aoa-product-title {
    font-family: var(--font-heading) !important;
    font-size: 1.9rem !important;
    line-height: 1.25 !important;
    color: var(--dark) !important;
    margin: 0 0 14px !important;
    font-weight: 700 !important;
}

/* Price */
.aoa-product-price {
    margin-bottom: 10px;
}

.aoa-product-price .price {
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
}

/* Rating */
.aoa-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.aoa-review-count {
    font-size: 0.78rem;
    color: var(--gray);
}

/* Stock badge */
.aoa-stock-badge {
    margin-bottom: 16px;
}

.aoa-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}

.aoa-stock--ok {
    background: rgba(27, 138, 62, 0.08);
    color: #1b8a3e;
}

.aoa-stock--low {
    background: rgba(230, 81, 0, 0.08);
    color: #e65100;
}

.aoa-stock--out {
    background: rgba(229, 57, 53, 0.08);
    color: #e53935;
}

/* Divider */
.aoa-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 18px 0;
}

/* Description */
.aoa-product-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Add to cart wrap — make button match shop page .btn-add-cart exactly */
.aoa-add-to-cart-wrap {
    margin-bottom: 14px;
}

.aoa-add-to-cart-wrap form.cart {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

/* THE BUTTON — matches shop page Add to Cart exactly */
.aoa-add-to-cart-wrap .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 160px !important;
    padding: 13px 20px !important;
    border-radius: 8px !important;
    background: var(--dark) !important;
    color: var(--white) !important;
    border: 2px solid var(--dark) !important;
    font-family: var(--font-body) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.9px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    outline: none !important;
    height: 48px !important;
}

.aoa-add-to-cart-wrap .single_add_to_cart_button:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}

/* Qty control */
.aoa-add-to-cart-wrap .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 48px !important;
    background: #fafafa !important;
}

.aoa-add-to-cart-wrap .quantity .qty {
    width: 48px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    outline: none !important;
    font-family: var(--font-body) !important;
}

/* WhatsApp button */
.aoa-wa-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #25D366 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 10px 16px !important;
    border: 2px solid #25D366 !important;
    border-radius: 8px !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    margin-bottom: 14px !important;
    justify-content: center !important;
}

.aoa-wa-btn:hover {
    background: #25D366 !important;
    color: #fff !important;
    opacity: 1 !important;
}

.aoa-wa-btn i {
    font-size: 1.25rem !important;
}

/* Trust row */
.aoa-trust-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.aoa-trust-row span {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aoa-trust-row i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* Attributes */
.aoa-attrs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aoa-attr-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 0.84rem;
}

.aoa-attr-row:last-child {
    border-bottom: none;
}

.aoa-attr-key {
    color: var(--gray);
    width: 110px;
    flex-shrink: 0;
    font-weight: 500;
}

.aoa-attr-val {
    color: var(--dark);
}

/* Full description section */
.aoa-product-full-desc {
    padding: 36px 40px;
    background: #faf9f7;
    border-radius: 14px;
    margin-bottom: 50px;
}

.aoa-product-full-desc h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-light);
    display: inline-block;
}

.aoa-product-full-desc p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 12px;
}

/* ---- MOBILE ---- */
@media (max-width: 900px) {
    .aoa-product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .aoa-product-gallery {
        position: static;
    }

    .aoa-product-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .product-detail-page {
        padding: 20px 0 50px;
    }

    .aoa-product-title {
        font-size: 1.3rem !important;
    }

    .aoa-add-to-cart-wrap form.cart {
        flex-direction: column !important;
    }

    .aoa-add-to-cart-wrap .quantity {
        align-self: flex-start !important;
    }

    .aoa-product-full-desc {
        padding: 22px 18px;
    }

    .aoa-trust-row {
        gap: 12px;
    }
}

/* =============================================
   ENGRAVING / PERSONALISATION SECTION
   ============================================= */
.aoa-engraving-section {
    background: linear-gradient(135deg, #fffdf5, #fdf8ec);
    border: 1.5px solid #e8d9a8;
    border-left: 4px solid #c9a84c;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.aoa-engraving-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.aoa-engraving-title i {
    color: #c9a84c;
}

.aoa-engraving-fee-badge {
    background: #c9a84c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Option cards */
.aoa-engrave-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.aoa-engrave-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.18s ease;
}

.aoa-engrave-option input[type="radio"] {
    display: none;
}

.aoa-engrave-option--active {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.06);
}

.aoa-engrave-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s ease;
}

.aoa-engrave-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a84c;
    transition: transform 0.18s ease;
}

.aoa-engrave-option--active .aoa-engrave-radio {
    border-color: #c9a84c;
}

.aoa-engrave-option--active .aoa-engrave-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.aoa-engrave-option div {
    display: flex;
    flex-direction: column;
}

.aoa-engrave-option strong {
    font-size: 0.84rem;
    color: #1a1a1a;
}

.aoa-engrave-option small {
    font-size: 0.75rem;
    color: #888;
    margin-top: 1px;
}

/* Input panel */
.aoa-engrave-input-wrap {
    margin-top: 4px;
}

.aoa-engrave-input-wrap label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin-bottom: 6px;
}

.aoa-engrave-input-wrap input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0d0a0;
    border-radius: 8px;
    font-size: 0.92rem;
    background: #fff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
}

.aoa-engrave-input-wrap input:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.aoa-engrave-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    gap: 8px;
}

.aoa-engrave-note {
    font-size: 0.72rem;
    color: #aaa;
}

.aoa-engrave-note i {
    color: #c9a84c;
    font-size: 0.68rem;
}

.aoa-char-count {
    font-size: 0.72rem;
    color: #aaa;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .aoa-engrave-options {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PRODUCT CARD — COLOUR DOTS + SIZE CHIPS
   ============================================= */
.product-card-colours {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 4px;
    flex-wrap: wrap;
}

.product-card-colour-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    display: inline-block;
    cursor: default;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.product-card-colour-dot:hover {
    transform: scale(1.2);
}

.product-card-more-colours {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 600;
}

.product-card-sizes {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.product-card-size {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--gray);
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 0.3px;
}

.product-card-size--more {
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.1);
}

/* =============================================
   PRODUCT DETAIL — VARIANT SELECTORS
   ============================================= */
.aoa-variant-section {
    margin-bottom: 20px;
}

.aoa-variant-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #888;
    margin-bottom: 10px;
}

.aoa-selected-val {
    font-weight: 600;
    color: var(--dark);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.84rem;
}

/* Colour swatches */
.aoa-colour-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aoa-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.12);
    outline: none;
    flex-shrink: 0;
}

.aoa-swatch:hover {
    transform: scale(1.12);
}

.aoa-swatch--active {
    border-color: var(--white);
    box-shadow: 0 0 0 2.5px var(--gold);
    transform: scale(1.1);
}

/* Size / option buttons */
.aoa-size-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aoa-size-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.18s ease;
    min-width: 44px;
    text-align: center;
}

.aoa-size-btn:hover {
    border-color: var(--gold);
    color: var(--dark);
}

.aoa-size-btn--active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/* Size guide link */
.aoa-size-guide-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.73rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin-left: 6px;
    transition: opacity 0.18s;
}

.aoa-size-guide-btn:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Qty + Add row */
.aoa-qty-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Column: "X available" stacked above the qty control */
.aoa-qty-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aoa-qty-available {
    font-size: 0.74rem;
    font-weight: 600;
    color: #1b8a3e;
    letter-spacing: 0.2px;
    padding-left: 2px;
}

.aoa-qty-row .qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.aoa-qty-row .qty-control button {
    width: 40px;
    height: 100%;
    border: none;
    background: #f5f5f5;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font-body);
}

.aoa-qty-row .qty-control button:hover {
    background: var(--gold);
    color: var(--white);
}

.aoa-qty-row .qty-control input[type="number"] {
    width: 52px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    background: var(--white);
    font-family: var(--font-body);
    -moz-appearance: textfield;
}

.aoa-qty-row .qty-control input::-webkit-inner-spin-button,
.aoa-qty-row .qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.aoa-qty-row .btn-add-cart {
    flex: 1;
    min-width: 160px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--dark);
    color: var(--white);
    border: 2px solid var(--dark);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Remove WC-injected ::before icon — our <i> is the only icon */
.aoa-qty-row .btn-add-cart::before {
    display: none !important;
    content: '' !important;
}

.aoa-qty-row .btn-add-cart:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.aoa-qty-row .btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product form */
.aoa-product-form {
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .aoa-qty-row {
        flex-direction: column;
        align-items: stretch;
    }

    .aoa-qty-row .btn-add-cart {
        width: 100%;
    }
}

/* =============================================
   PRODUCT DETAILS — attrs below description
   ============================================= */
.aoa-attrs--below {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #e8e8e8);
}

.aoa-attrs--below .aoa-attr-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border, #f0f0f0);
    font-size: 0.88rem;
}

.aoa-attrs--below .aoa-attr-row:last-child {
    border-bottom: none;
}

.aoa-attrs--below .aoa-attr-key {
    font-weight: 800;
    color: var(--dark, #1a1a1a);
    min-width: 110px;
    flex-shrink: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aoa-attrs--below .aoa-attr-val {
    color: var(--gray, #555);
    font-weight: 400;
}

/* =============================================
   FAB — Floating Add to Cart
   ============================================= */
.aoa-fab-atc {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1500;
    display: none;
    /* shown via JS */
    align-items: center;
    gap: 10px;
    background: var(--dark, #1a1a1a);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.aoa-fab-atc:hover {
    background: var(--gold, #c9a84c);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(201, 168, 76, 0.4);
}

.aoa-fab-atc i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .aoa-fab-atc {
        bottom: 20px;
        right: 16px;
        padding: 13px 20px;
        font-size: 0.84rem;
    }
}

/* =============================================
   ADD TO CART TOAST
   ============================================= */
#aoaProductToast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark, #1a1a1a);
    color: #fff;
    padding: 13px 22px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    pointer-events: auto;
    max-width: 90vw;
}

#aoaProductToast.aoa-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#aoaProductToast i {
    color: #5cb85c;
    font-size: 1rem;
    flex-shrink: 0;
}

#aoaProductToast a {
    color: var(--gold, #c9a84c);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

#aoaProductToast a:hover {
    text-decoration: underline;
}