/* ==========================================================================
   FashForward_Luxe - WooCommerce Custom Styles
   Replaces ALL default WooCommerce styles with on-brand design.
   ========================================================================== */

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.ff-breadcrumb {
    font-family: var(--ff-font-body);
    font-size: 0.8rem;
    color: var(--ff-silver);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ff-breadcrumb a {
    color: var(--ff-silver);
}

.ff-breadcrumb a:hover {
    color: var(--ff-gold);
}

.ff-breadcrumb__sep {
    margin: 0 0.5rem;
    color: var(--ff-gold);
    opacity: 0.5;
}

.ff-breadcrumb__item {
    display: inline;
}

/* ==========================================================================
   Shop Controls (Result Count + Ordering)
   ========================================================================== */

.ff-shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.ff-shop-controls__count {
    font-size: 0.85rem;
    color: var(--ff-silver);
}

.ff-shop-controls__count .woocommerce-result-count {
    margin: 0;
}

.ff-shop-controls__ordering select,
.woocommerce-ordering select {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--ff-cream);
    font-family: var(--ff-font-body);
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: var(--ff-border-radius);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ff-shop-controls__ordering select:focus,
.woocommerce-ordering select:focus {
    border-color: var(--ff-gold);
}

/* ==========================================================================
   Products Grid
   ========================================================================== */

.ff-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.ff-product-card {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
    transition: all var(--ff-transition);
    position: relative;
}

.ff-product-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

/* Product Image */
.ff-product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.ff-product-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ff-product-card__img,
.ff-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ff-transition-slow);
}

.ff-product-card:hover .ff-product-card__img,
.ff-product-card:hover .ff-product-card__image img {
    transform: scale(1.05);
}

/* Sale Badge */
.ff-product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 4px 12px;
    font-family: var(--ff-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.ff-product-card__badge--sale {
    background: var(--ff-scarlet);
    color: var(--ff-white);
}

/* Hover Overlay */
.ff-product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 27, 20, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ff-transition);
    z-index: 2;
}

.ff-product-card:hover .ff-product-card__overlay {
    opacity: 1;
}

/* Product Details */
.ff-product-card__details {
    padding: 1.25rem;
}

.ff-product-card__category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ff-silver);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.ff-product-card__category a {
    color: var(--ff-silver);
}

.ff-product-card__category a:hover {
    color: var(--ff-gold);
}

.ff-product-card__title {
    font-family: var(--ff-font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.ff-product-card__title a {
    color: var(--ff-cream);
    text-decoration: none;
}

.ff-product-card__title a:hover {
    color: var(--ff-gold);
}

.ff-product-card__price {
    font-family: var(--ff-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ff-scarlet);
    margin-bottom: 0.75rem;
}

.ff-product-card__price del {
    color: var(--ff-silver);
    opacity: 0.5;
    font-weight: 300;
    margin-right: 0.5rem;
}

.ff-product-card__price ins {
    text-decoration: none;
    color: var(--ff-scarlet);
}

.ff-product-card__actions {
    margin-top: 0.5rem;
}

.ff-product-card__add-to-cart {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   No Products Found
   ========================================================================== */

.ff-no-products {
    text-align: center;
    padding: 4rem 0;
}

.ff-no-products p {
    font-size: 1.1rem;
    color: var(--ff-silver);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Single Product
   ========================================================================== */

.ff-single-product {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.ff-single-product__gallery {
    position: relative;
}

/* Override WC default gallery styles */
.ff-single-product__gallery .woocommerce-product-gallery {
    width: 100% !important;
}

.ff-single-product__gallery .woocommerce-product-gallery__image img {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.ff-single-product__gallery .flex-control-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.ff-single-product__gallery .flex-control-thumbs li {
    flex: 0 0 auto;
    width: 80px;
}

.ff-single-product__gallery .flex-control-thumbs li img {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--ff-transition);
}

.ff-single-product__gallery .flex-control-thumbs li img.flex-active,
.ff-single-product__gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--ff-gold);
}

/* Product Details */
.ff-single-product__details {
    padding-top: 1rem;
}

.ff-single-product__title {
    font-family: var(--ff-font-heading);
    font-size: var(--ff-h2);
    font-style: italic;
    color: var(--ff-cream);
    margin-bottom: 1rem;
}

.ff-single-product__price {
    font-family: var(--ff-font-body);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ff-scarlet);
    margin-bottom: 1.5rem;
}

.ff-single-product__price del {
    color: var(--ff-silver);
    opacity: 0.5;
    font-weight: 300;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.ff-single-product__price ins {
    text-decoration: none;
}

.ff-single-product__short-desc {
    font-size: 0.95rem;
    color: var(--ff-silver);
    line-height: 1.8;
}

.ff-single-product__short-desc p:last-child {
    margin-bottom: 0;
}

/* Add to Cart Form Styles */
.ff-single-product__add-to-cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.ff-single-product__add-to-cart .quantity .qty {
    width: 70px;
    text-align: center;
    background: var(--ff-cream);
    border: 1px solid transparent;
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    padding: 12px;
    border-radius: var(--ff-border-radius);
    outline: none;
}

.ff-single-product__add-to-cart .quantity .qty:focus {
    border-color: var(--ff-gold);
}

.ff-single-product__add-to-cart .single_add_to_cart_button {
    background: var(--ff-scarlet);
    color: var(--ff-white);
    font-family: var(--ff-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 14px 36px;
    border: none;
    border-radius: var(--ff-border-radius);
    cursor: pointer;
    transition: background var(--ff-transition);
}

.ff-single-product__add-to-cart .single_add_to_cart_button:hover {
    background: var(--ff-scarlet-hover);
}

/* Product Meta */
.ff-single-product__meta {
    margin-top: 1rem;
}

.ff-single-product__meta-item {
    font-size: 0.85rem;
    color: var(--ff-silver);
    margin-bottom: 0.5rem;
}

.ff-single-product__meta-label {
    font-weight: 600;
    color: var(--ff-cream);
    margin-right: 0.5rem;
}

.ff-single-product__meta-item a {
    color: var(--ff-gold);
}

/* ==========================================================================
   Product Tabs
   ========================================================================== */

.ff-single-product__tabs {
    margin: 3rem 0;
}

.ff-single-product__tabs .woocommerce-tabs {
    margin: 0;
}

.ff-single-product__tabs .wc-tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ff-single-product__tabs .wc-tabs li {
    margin: 0;
}

.ff-single-product__tabs .wc-tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    font-family: var(--ff-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ff-silver);
    border-bottom: 2px solid transparent;
    transition: all var(--ff-transition);
    text-decoration: none;
}

.ff-single-product__tabs .wc-tabs li a:hover {
    color: var(--ff-cream);
}

.ff-single-product__tabs .wc-tabs li.active a {
    color: var(--ff-gold);
    border-bottom-color: var(--ff-gold);
}

.ff-single-product__tabs .woocommerce-Tabs-panel {
    color: var(--ff-silver);
    line-height: 1.8;
}

.ff-single-product__tabs .woocommerce-Tabs-panel h2 {
    display: none;
}

/* ==========================================================================
   Related Products
   ========================================================================== */

.ff-single-product__related {
    margin: 3rem 0;
}

.ff-single-product__related .related.products>h2 {
    font-family: var(--ff-font-heading);
    font-size: var(--ff-h3);
    text-align: center;
    margin-bottom: 2rem;
}

.woocommerce .ff-single-product__related ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

@media (max-width: 1024px) {
    .woocommerce .ff-single-product__related ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce .ff-single-product__related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce .ff-single-product__related ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Reset WC Defaults for child items in our grid */
.woocommerce .ff-single-product__related ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
    transition: all var(--ff-transition);
}

.woocommerce .ff-single-product__related ul.products li.product:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

.ff-single-product__related .products .product img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.ff-single-product__related .products .product .woocommerce-loop-product__title {
    font-family: var(--ff-font-heading);
    font-size: 1rem;
    color: var(--ff-cream);
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
}

.ff-single-product__related .products .product .price {
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ff-scarlet);
    padding: 0 1rem 0.75rem;
}

.ff-single-product__related .products .product .price del {
    color: var(--ff-silver);
    opacity: 0.5;
}

.ff-single-product__related .products .product .price ins {
    text-decoration: none;
}

.ff-single-product__related .products .product .button {
    display: block;
    text-align: center;
    padding: 10px;
    margin: 0 1rem 1rem;
    background: var(--ff-scarlet);
    color: var(--ff-white);
    font-family: var(--ff-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--ff-border-radius);
    transition: background var(--ff-transition);
    text-decoration: none;
}

.ff-single-product__related .products .product .button:hover {
    background: var(--ff-scarlet-hover);
}

/* WC onsale badge (default) override */
.woocommerce span.onsale {
    background: var(--ff-scarlet);
    color: var(--ff-white);
    font-family: var(--ff-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 0;
    min-width: auto;
    min-height: auto;
    line-height: 1.5;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.ff-cart-empty {
    text-align: center;
    padding: 4rem 0;
}

.ff-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Cart Items */
.ff-cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
}

.ff-cart-item__image {
    width: 100px;
    height: 130px;
    overflow: hidden;
}

.ff-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-cart-item__title {
    font-family: var(--ff-font-heading);
    font-size: 1.1rem;
    color: var(--ff-cream);
    margin-bottom: 0.25rem;
}

.ff-cart-item__title a {
    color: var(--ff-cream);
    text-decoration: none;
}

.ff-cart-item__title a:hover {
    color: var(--ff-gold);
}

.ff-cart-item__price {
    font-size: 0.9rem;
    color: var(--ff-silver);
    margin-top: 0.5rem;
}

.ff-cart-item__price .woocommerce-Price-amount {
    color: var(--ff-scarlet);
    font-weight: 600;
}

/* Quantity Input */
.ff-cart-item__quantity .quantity {
    display: flex;
    align-items: center;
}

.ff-cart-item__quantity .qty {
    width: 60px;
    text-align: center;
    background: var(--ff-cream);
    border: 1px solid transparent;
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.85rem;
    padding: 8px;
    border-radius: var(--ff-border-radius);
    outline: none;
}

.ff-cart-item__quantity .qty:focus {
    border-color: var(--ff-gold);
}

.ff-cart-item__subtotal {
    font-family: var(--ff-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ff-scarlet);
    white-space: nowrap;
}

.ff-cart-item__remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--ff-silver);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all var(--ff-transition);
}

.ff-cart-item__remove-btn:hover {
    background: var(--ff-scarlet);
    border-color: var(--ff-scarlet);
    color: var(--ff-white);
}

/* Cart Actions (Coupon + Update) */
.ff-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.ff-cart-coupon {
    display: flex;
    gap: 0.5rem;
}

.ff-cart-coupon__input {
    background: var(--ff-cream);
    border: 1px solid transparent;
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: var(--ff-border-radius);
    outline: none;
    min-width: 200px;
}

.ff-cart-coupon__input:focus {
    border-color: var(--ff-gold);
}

/* Cart Totals */
.ff-cart-totals {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.ff-cart-totals__title {
    font-family: var(--ff-font-heading);
    font-size: var(--ff-h4);
    color: var(--ff-cream);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ff-cart-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.ff-cart-totals__label {
    font-size: 0.9rem;
    color: var(--ff-silver);
}

.ff-cart-totals__value {
    font-size: 0.9rem;
    color: var(--ff-cream);
    font-weight: 500;
}

.ff-cart-totals__value .woocommerce-Price-amount {
    color: var(--ff-scarlet);
    font-weight: 600;
}

.ff-cart-totals__row--total {
    padding: 1rem 0;
}

.ff-cart-totals__row--total .ff-cart-totals__label {
    font-family: var(--ff-font-heading);
    font-size: 1.2rem;
    color: var(--ff-cream);
}

.ff-cart-totals__row--total .ff-cart-totals__value {
    font-size: 1.4rem;
    font-weight: 700;
}

.ff-cart-totals__row--total .ff-cart-totals__value .woocommerce-Price-amount {
    font-size: 1.4rem;
}

.ff-cart-totals__checkout {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.ff-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: start;
}

.ff-checkout-section {
    margin-bottom: 2rem;
}

.ff-checkout-section__title {
    font-family: var(--ff-font-heading);
    font-size: var(--ff-h4);
    color: var(--ff-cream);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Form Fields */
.ff-checkout-form .form-row {
    margin-bottom: 1rem;
}

.ff-checkout-form .form-row label {
    display: block;
    font-family: var(--ff-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-cream);
    margin-bottom: 0.5rem;
}

.ff-checkout-form .form-row label .required {
    color: var(--ff-scarlet);
}

.ff-checkout-form .form-row input.input-text,
.ff-checkout-form .form-row textarea,
.ff-checkout-form .form-row select {
    width: 100%;
    background: var(--ff-cream);
    border: 1px solid transparent;
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: var(--ff-border-radius);
    outline: none;
    transition: border-color var(--ff-transition);
}

.ff-checkout-form .form-row input.input-text:focus,
.ff-checkout-form .form-row textarea:focus,
.ff-checkout-form .form-row select:focus {
    border-color: var(--ff-gold);
}

.ff-checkout-form .form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.ff-checkout-form .form-row select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Select2 Override (WooCommerce uses Select2 for dropdowns) */
.ff-checkout-form .select2-container .select2-selection--single {
    background: var(--ff-cream);
    border: 1px solid transparent;
    height: 44px;
    border-radius: var(--ff-border-radius);
}

.ff-checkout-form .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    line-height: 44px;
    padding-left: 16px;
}

.ff-checkout-form .select2-container--focus .select2-selection--single {
    border-color: var(--ff-gold);
}

/* Checkbox styling */
.ff-checkout-form .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ff-silver);
    cursor: pointer;
}

/* Order Review */
.ff-checkout-order-review {
    position: sticky;
    top: 100px;
}

.ff-checkout-order-review__inner {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th {
    font-family: var(--ff-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ff-gold);
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.woocommerce-checkout-review-order-table td {
    font-size: 0.9rem;
    color: var(--ff-silver);
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.woocommerce-checkout-review-order-table .product-name {
    font-family: var(--ff-font-heading);
    font-size: 0.95rem;
    color: var(--ff-cream);
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    color: var(--ff-scarlet);
}

.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .order-total td {
    color: var(--ff-cream);
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 1px solid var(--ff-gold);
    padding-top: 1rem;
}

.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    color: var(--ff-scarlet);
    font-size: 1.25rem;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    margin-top: 1.5rem;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_methods .wc_payment_method {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 0.5rem;
    padding: 1rem;
}

.wc_payment_methods .wc_payment_method label {
    font-family: var(--ff-font-body);
    font-weight: 500;
    color: var(--ff-cream);
    cursor: pointer;
}

.wc_payment_methods .payment_box {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--ff-silver);
    line-height: 1.6;
}

/* Place Order Button */
#place_order {
    width: 100%;
    margin-top: 1.5rem;
    padding: 16px 36px;
    background: var(--ff-scarlet);
    color: var(--ff-white);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: var(--ff-border-radius);
    cursor: pointer;
    transition: background var(--ff-transition);
}

#place_order:hover {
    background: var(--ff-scarlet-hover);
}

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 3px solid var(--ff-gold);
    color: var(--ff-cream);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    list-style: none;
}

.woocommerce-message {
    border-left-color: var(--ff-gold);
}

.woocommerce-info {
    border-left-color: var(--ff-silver);
}

.woocommerce-error {
    border-left-color: var(--ff-scarlet);
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-message a,
.woocommerce-info a {
    color: var(--ff-gold);
    font-weight: 600;
}

/* ==========================================================================
   Add-to-Cart Toast Notifications
   ========================================================================== */

.ff-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.ff-toast {
    background: var(--ff-card-bg, #3a2419);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 4px solid var(--ff-gold);
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ff-cream);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    will-change: transform, opacity;
}

.ff-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.ff-toast--dismissing {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ff-toast--success {
    border-left-color: var(--ff-gold);
}

.ff-toast--error {
    border-left-color: var(--ff-scarlet);
}

.ff-toast--info {
    border-left-color: var(--ff-silver);
}

.ff-toast__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.ff-toast--success .ff-toast__icon {
    color: var(--ff-gold);
}

.ff-toast--error .ff-toast__icon {
    color: var(--ff-scarlet);
}

.ff-toast--info .ff-toast__icon {
    color: var(--ff-silver);
}

.ff-toast__message {
    flex: 1;
    font-weight: 400;
}

.ff-toast__link {
    color: var(--ff-gold);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    white-space: nowrap;
}

.ff-toast__link:hover {
    color: #e6c44a;
    text-decoration: underline;
}

.ff-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--ff-silver);
    cursor: pointer;
    padding: 2px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.ff-toast__close:hover {
    opacity: 1;
    color: var(--ff-cream);
}

/* Responsive: move toast to bottom on mobile */
@media (max-width: 767px) {
    .ff-toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .ff-toast {
        transform: translateY(100%);
    }

    .ff-toast--visible {
        transform: translateY(0);
    }

    .ff-toast--dismissing {
        transform: translateY(100%);
    }
}

/* ==========================================================================
   WC Star Ratings
   ========================================================================== */

.star-rating {
    display: inline-flex;
    font-size: 0.85rem;
    color: var(--ff-gold);
    overflow: hidden;
    position: relative;
    width: 5em;
    height: 1em;
    line-height: 1;
}

.star-rating::before {
    content: '\2605\2605\2605\2605\2605';
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 0;
    left: 0;
}

.star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.star-rating span::before {
    content: '\2605\2605\2605\2605\2605';
    color: var(--ff-gold);
}

/* ==========================================================================
   WC Buttons (global overrides)
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--ff-scarlet);
    color: var(--ff-white);
    font-family: var(--ff-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 24px;
    border: none;
    border-radius: var(--ff-border-radius);
    cursor: pointer;
    transition: background var(--ff-transition);
    text-decoration: none;
    display: inline-block;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--ff-scarlet-hover);
    color: var(--ff-white);
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   WC Forms (generic - account pages, etc.)
   ========================================================================== */

.woocommerce-form .woocommerce-form-row input.input-text,
.woocommerce-form .form-row input.input-text {
    background: var(--ff-cream);
    border: 1px solid transparent;
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: var(--ff-border-radius);
    outline: none;
    width: 100%;
    transition: border-color var(--ff-transition);
}

.woocommerce-form .woocommerce-form-row input.input-text:focus,
.woocommerce-form .form-row input.input-text:focus {
    border-color: var(--ff-gold);
}

.woocommerce-form .woocommerce-form-row label,
.woocommerce-form .form-row label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-cream);
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.ff-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--ff-gold);
    border-radius: 50%;
    animation: ff-spin 0.8s linear infinite;
}

.ff-quick-view-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

@keyframes ff-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   WooCommerce Responsive Overrides
   ========================================================================== */

@media (max-width: 991px) {
    .ff-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ff-single-product {
        grid-template-columns: 1fr;
    }

    .ff-cart-layout {
        grid-template-columns: 1fr;
    }

    .ff-cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 1rem;
    }

    .ff-cart-item__quantity {
        grid-column: 2;
    }

    .ff-cart-item__subtotal {
        grid-column: 3;
        grid-row: 1;
    }

    .ff-cart-item__remove {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }

    .ff-checkout-layout {
        grid-template-columns: 1fr;
    }

    .ff-checkout-order-review {
        position: static;
    }

    .ff-cart-totals {
        position: static;
    }

    .ff-single-product__related .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ff-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ff-product-card__overlay {
        display: none;
    }

    .ff-shop-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .ff-cart-item {
        grid-template-columns: 70px 1fr;
        gap: 0.75rem;
    }

    .ff-cart-item__quantity,
    .ff-cart-item__subtotal,
    .ff-cart-item__remove {
        grid-column: 2;
        grid-row: auto;
    }

    .ff-cart-coupon {
        flex-direction: column;
    }

    .ff-cart-coupon__input {
        min-width: 100%;
    }
}

@media (max-width: 479px) {
    .ff-products-grid {
        grid-template-columns: 1fr;
    }

    .ff-single-product__related .products {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Bespoke Measurement Form
   ========================================================================== */

.ff-bespoke {
    background: var(--ff-card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--ff-border-radius);
}

.ff-bespoke__title {
    font-family: var(--ff-font-heading);
    font-size: 1.15rem;
    color: var(--ff-gold);
    margin-bottom: 0.75rem;
}

.ff-bespoke__instruction {
    font-family: var(--ff-font-body);
    font-size: 0.82rem;
    font-style: italic;
    color: var(--ff-gold);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.ff-bespoke__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ff-bespoke__field {
    display: flex;
    flex-direction: column;
}

.ff-bespoke__label {
    font-family: var(--ff-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-cream);
    margin-bottom: 0.4rem;
}

.ff-bespoke__required {
    color: var(--ff-scarlet);
    margin-left: 2px;
}

.ff-bespoke__input-wrap {
    display: flex;
    align-items: center;
    background: var(--ff-cream);
    border: 1px solid transparent;
    border-radius: var(--ff-border-radius);
    transition: border-color var(--ff-transition);
    overflow: hidden;
}

.ff-bespoke__input-wrap:focus-within {
    border-color: var(--ff-gold);
}

.ff-bespoke__input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ff-espresso);
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    padding: 10px 12px;
    outline: none;
    min-width: 0;
    -moz-appearance: textfield;
}

.ff-bespoke__input::-webkit-inner-spin-button,
.ff-bespoke__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ff-bespoke__input::placeholder {
    color: var(--ff-silver);
    opacity: 0.4;
}

.ff-bespoke__unit {
    font-family: var(--ff-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ff-silver);
    padding: 0 12px 0 0;
    user-select: none;
    flex-shrink: 0;
}

/* Bespoke form responsive */
@media (max-width: 479px) {
    .ff-bespoke__grid {
        grid-template-columns: 1fr;
    }

    .ff-bespoke {
        padding: 1.25rem;
    }
}