/* ============================================
   WooCommerce Styles
   ============================================ */

/* Product detail page specific styles */
.product-detail-page {
    padding-top: 60px;
    padding-bottom: 120px;
    background: #fff;
    min-height: 100vh;
}

.product-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 120px;
}

.product-detail-gallery {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90px;
    flex-shrink: 0;
    align-self: stretch;
    justify-content: flex-start;
}

.gallery-thumb {
    width: 90px;
    height: 110px;
    border: 1px solid var(--color-border, #e5e5e5);
    background: #fafafa;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--color-dark, #1a1a1a);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.gallery-nav-btn {
    width: 41px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border, #e5e5e5);
    background: #fff;
    color: var(--color-text-light, #888);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.gallery-nav-btn:hover {
    border-color: var(--color-dark, #1a1a1a);
    color: var(--color-text, #333);
}

.product-detail-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid var(--color-border, #e5e5e5);
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 50%;
    color: var(--color-text, #333);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    z-index: 10;
}

.zoom-btn:hover {
    border-color: var(--color-dark, #1a1a1a);
    background: var(--color-dark, #1a1a1a);
    color: #fff;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.35s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.product-detail-info {
    padding-top: 40px;
}

.product-detail-name {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text, #333);
}

.product-detail-desc {
    font-size: 15px;
    color: var(--color-text-light, #888);
    margin-bottom: 32px;
    line-height: 1.7;
}

.product-detail-size {
    margin-bottom: 0;
}

.size-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text, #333);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text, #333);
    border: 1px solid var(--color-border, #e5e5e5);
    background: #fff;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.size-option:hover,
.size-option.active {
    border-color: var(--color-dark, #1a1a1a);
    background: var(--color-dark, #1a1a1a);
    color: #fff;
}

.size-option:disabled,
.size-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ensure size options inside variations_form display properly */
.product-detail-actions .variations_form .product-detail-size {
    width: 100%;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text, #333);
    margin-bottom: 28px;
}

.product-detail-price .woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text, #333);
}

.product-detail-price ins {
    text-decoration: none;
}

.product-detail-price del {
    color: #999;
    font-size: 20px;
    margin-right: 10px;
}

.product-detail-price del .woocommerce-Price-amount {
    font-size: 20px;
    color: #999;
}

.product-detail-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-detail-actions form.cart,
.product-detail-actions form.shop-ajax-cart {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

.product-detail-actions .variations_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

/* Hide default WooCommerce variations table and related elements */
.product-detail-actions .variations_form .variations,
.product-detail-actions .variations_form .single_variation_wrap,
.product-detail-actions .variations_form .woocommerce-variation-price,
.product-detail-actions .variations_form .woocommerce-variation-availability,
.product-detail-actions .variations_form .woocommerce-variation-description,
.product-detail-actions .variations_form .reset_variations {
    display: none !important;
}

/* Custom variations add to cart row */
.variations-add-to-cart-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    width: 100%;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border, #e5e5e5);
    height: 48px;
}

.quantity-btn {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-light, #888);
    background: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.quantity-btn:hover {
    color: var(--color-text, #333);
    background: #f5f5f5;
}

.quantity-input {
    width: 44px;
    height: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #333);
    border: none;
    border-left: 1px solid var(--color-border, #e5e5e5);
    border-right: 1px solid var(--color-border, #e5e5e5);
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
}

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

.btn-add-cart {
    height: 48px;
    padding: 0 48px;
    background: var(--color-dark, #1a1a1a);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-dark, #1a1a1a);
    transition: var(--transition, all 0.3s ease);
    cursor: pointer;
}

.btn-add-cart:hover {
    background: var(--color-dark-hover, #333);
}

.btn-buy-now {
    height: 48px;
    padding: 0 48px;
    background: #fff;
    color: var(--color-text, #333);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-dark, #1a1a1a);
    transition: var(--transition, all 0.3s ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-buy-now:hover {
    background: #f5f5f5;
}

.btn-wishlist-detail {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text, #333);
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    transition: var(--transition, all 0.3s ease);
    cursor: pointer;
}

.btn-wishlist-detail:hover {
    color: #c44;
    border-color: #c44;
}

/* YITH Wishlist button styling */
.product-detail-actions .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.product-detail-actions .yith-wcwl-add-button a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text, #333);
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
    font-size: 0;
}

.product-detail-actions .yith-wcwl-add-button a:hover {
    color: #c44;
    border-color: #c44;
}

.product-detail-meta {
    border-top: 1px solid var(--color-border, #e5e5e5);
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    font-size: 15px;
}

.meta-label {
    color: var(--color-text, #333);
}

.meta-value {
    color: var(--color-text-light, #888);
}

.meta-value a {
    color: var(--color-text-light, #888);
    text-decoration: none;
}

.meta-value a:hover {
    color: var(--color-dark, #1a1a1a);
}

/* Product Description Section */
.product-description-section {
    margin-bottom: 100px;
    max-width: 800px;
}

.product-description-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--color-text, #333);
}

.product-description-content p {
    font-size: 15px;
    color: var(--color-text-light, #888);
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-description-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border, #e5e5e5);
}

.note-item h4 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--color-text, #333);
}

.note-item p {
    font-size: 14px;
    color: var(--color-text-light, #888);
    margin-bottom: 0;
}

/* From Collection Section */
.from-collection {
    padding-bottom: 0;
}

.from-collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.from-collection-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text, #333);
}

.from-collection-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Product card in from-collection - match shop page product-list-item layout */
.from-collection .product-card.full-image,
.from-collection .product-list-item {
    position: relative;
    border-right: 1px solid var(--color-border, #e5e5e5);
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    padding: 0;
    background: #fff;
    overflow: hidden;
    height: 520px;
    transition: var(--transition, all 0.3s ease);
    display: flex;
    flex-direction: column;
}

.from-collection .product-card.full-image:nth-child(4n+1),
.from-collection .product-list-item:nth-child(4n+1) {
    border-left: 1px solid var(--color-border, #e5e5e5);
}

.from-collection .product-card.full-image:hover,
.from-collection .product-list-item:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    z-index: 2;
}

/* Header - absolute positioned at top with transparent background */
.from-collection .product-card.full-image .product-header,
.from-collection .product-list-item .product-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 16px 18px;
    margin-bottom: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.from-collection .product-card .product-name {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--product-name-color, #fff);
}

.from-collection .product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.from-collection .product-card .product-name a:hover {
    color: var(--color-dark, #1a1a1a);
}

.from-collection .product-card.full-image .product-header .wishlist-btn,
.from-collection .product-list-item .product-header .wishlist-btn {
    color: var(--color-text-muted, #999);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.from-collection .product-card.full-image:hover .product-header .wishlist-btn,
.from-collection .product-list-item:hover .product-header .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.from-collection .product-card.full-image .product-header .wishlist-btn:hover,
.from-collection .product-list-item .product-header .wishlist-btn:hover {
    color: #c44;
}

/* Image - fills the entire card */
.from-collection .product-card.full-image .product-image {
    position: relative;
    padding: 0;
    height: 100%;
    width: 100%;
    flex: 1;
    background: transparent;
}

.from-collection .product-card.full-image .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.from-collection .product-card.full-image .product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* Also apply to product-list-item variant */
.from-collection .product-list-item .product-image {
    position: relative;
    padding: 0;
    height: 100%;
    width: 100%;
    flex: 1;
    background: transparent;
}

.from-collection .product-list-item .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.from-collection .product-list-item .product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* Footer - absolute positioned at bottom with gradient background */
.from-collection .product-card.full-image .product-footer,
.from-collection .product-list-item .product-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 16px 18px;
    margin-top: 0;
    padding-top: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.7) 60%, transparent 100%);
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.from-collection .product-card .product-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--product-current-price, #1a1a1a);
}

.from-collection .product-card .product-price ins {
    text-decoration: none;
}

.from-collection .product-card .product-price del {
    color: var(--product-original-price, #999);
    margin-right: 6px;
}

.from-collection .product-card.full-image .product-footer .cart-btn,
.from-collection .product-list-item .product-footer .cart-btn {
    color: var(--color-text-light, #888);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.from-collection .product-card.full-image:hover .product-footer .cart-btn,
.from-collection .product-list-item:hover .product-footer .cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.from-collection .product-card.full-image .product-footer .cart-btn:hover,
.from-collection .product-list-item .product-footer .cart-btn:hover {
    color: var(--color-dark, #1a1a1a);
}

/* Override style.css from-collection-slider flex layout */
.from-collection-slider {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding-bottom: 0 !important;
}

.from-collection-slider .product-card {
    flex: none !important;
    width: auto !important;
}

/* Ensure from-collection product-list-item matches shop page */
.from-collection .product-list-item {
    position: relative;
    border-right: 1px solid var(--color-border, #e5e5e5);
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    padding: 0;
    background: #fff;
    overflow: hidden;
    height: 520px;
    transition: var(--transition, all 0.3s ease);
}

.from-collection .product-list-item:nth-child(4n+1) {
    border-left: 1px solid var(--color-border, #e5e5e5);
}

.from-collection .product-list-item:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    z-index: 2;
}

/* Fix: product-list-item inside from-collection needs explicit height override */
.from-collection .product-list-item.product-card.full-image {
    height: 520px !important;
}

/* Ensure from-collection items don't get affected by global product-card.full-image height: 580px */
.from-collection .product-card.full-image,
.from-collection .product-list-item.product-card.full-image {
    height: 520px !important;
}

/* WooCommerce notices */
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border, #e5e5e5);
    background: #fafafa;
    font-size: 14px;
}

.woocommerce-message {
    border-left: 3px solid #7ad03a;
}

.woocommerce-info {
    border-left: 3px solid #1e85be;
}

.woocommerce-error {
    border-left: 3px solid #b81c23;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
    float: right;
    padding: 5px 15px;
    background: var(--color-dark, #1a1a1a);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

/* Stock status */
.stock {
    font-size: 14px;
    margin-bottom: 15px;
}

.stock.in-stock {
    color: #7ad03a;
}

.stock.out-of-stock {
    color: #b81c23;
}

/* Sale badge */
.onsale {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--color-dark, #1a1a1a);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Star rating */
.woocommerce-product-rating {
    margin-bottom: 20px;
}

.star-rating {
    color: #f5c518;
    font-size: 14px;
}

/* Reviews */
.woocommerce-Reviews {
    margin-top: 60px;
}

.woocommerce-Reviews-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 60px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs ul.tabs li {
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 30px;
    color: var(--color-text-light, #888);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-text, #333);
    border-bottom-color: var(--color-dark, #1a1a1a);
}

.woocommerce-tabs .panel {
    padding: 20px 0;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--color-text-light, #888);
    margin-bottom: 30px;
}

.woocommerce-breadcrumb a {
    color: var(--color-text, #333);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 8px;
}

/* Hide default WooCommerce product summary hooks output */
.product-detail-info .woocommerce-product-rating,
.product-detail-info .product_meta {
    display: none;
}

/* Fix for WooCommerce wrapper */
.woocommerce-product-wrapper {
    width: 100%;
}

/* ============================================
   Header Fix for Product Detail Page
   ============================================ */

/* Force header to always be visible with white background on single product pages */
body.single-product .header,
body.single-product .header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* ============================================
   Header Fix for Shop / Archive Pages
   ============================================ */

/* Force header to always be visible with white background on shop and category pages */
body.woocommerce-shop .header,
body.woocommerce-shop .header.scrolled,
body.post-type-archive-product .header,
body.post-type-archive-product .header.scrolled,
body.tax-product_cat .header,
body.tax-product_cat .header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

body.woocommerce-shop .header .header-inner,
body.post-type-archive-product .header .header-inner,
body.tax-product_cat .header .header-inner {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.woocommerce-shop .header .logo,
body.woocommerce-shop .header .nav a,
body.woocommerce-shop .header .action-btn,
body.woocommerce-shop .header .dropdown-toggle,
body.post-type-archive-product .header .logo,
body.post-type-archive-product .header .nav a,
body.post-type-archive-product .header .action-btn,
body.post-type-archive-product .header .dropdown-toggle,
body.tax-product_cat .header .logo,
body.tax-product_cat .header .nav a,
body.tax-product_cat .header .action-btn,
body.tax-product_cat .header .dropdown-toggle {
    color: #1a1a1a;
}

body.woocommerce-shop .header .action-btn svg,
body.woocommerce-shop .header .dropdown-toggle svg,
body.post-type-archive-product .header .action-btn svg,
body.post-type-archive-product .header .dropdown-toggle svg,
body.tax-product_cat .header .action-btn svg,
body.tax-product_cat .header .dropdown-toggle svg {
    stroke: #1a1a1a;
}

body.woocommerce-shop .header .mobile-menu-btn span,
body.post-type-archive-product .header .mobile-menu-btn span,
body.tax-product_cat .header .mobile-menu-btn span {
    background: #1a1a1a;
}

body.woocommerce-shop .header .mega-menu,
body.post-type-archive-product .header .mega-menu,
body.tax-product_cat .header .mega-menu {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.woocommerce-shop .header .mega-col h4,
body.post-type-archive-product .header .mega-col h4,
body.tax-product_cat .header .mega-col h4 {
    color: #1a1a1a;
}

body.woocommerce-shop .header .mega-col a,
body.post-type-archive-product .header .mega-col a,
body.tax-product_cat .header .mega-col a {
    color: #666;
}

body.woocommerce-shop .header .mega-col a::after,
body.post-type-archive-product .header .mega-col a::after,
body.tax-product_cat .header .mega-col a::after {
    background: #1a1a1a;
}

body.woocommerce-shop .header .mega-col a:hover,
body.post-type-archive-product .header .mega-col a:hover,
body.tax-product_cat .header .mega-col a:hover {
    color: #1a1a1a;
}

body.single-product .header .header-inner {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Logo - dark text */
body.single-product .header .logo,
body.single-product .header.scrolled .logo {
    color: #1a1a1a;
}

/* Navigation links - dark text */
body.single-product .header .nav a,
body.single-product .header.scrolled .nav a {
    color: #1a1a1a;
}

body.single-product .header .nav a::after,
body.single-product .header.scrolled .nav a::after {
    background: #1a1a1a;
}

/* Dropdown toggle - dark text */
body.single-product .header .dropdown-toggle,
body.single-product .header.scrolled .dropdown-toggle {
    color: #1a1a1a;
}

body.single-product .header .dropdown-toggle svg,
body.single-product .header.scrolled .dropdown-toggle svg {
    stroke: #1a1a1a;
}

/* Action buttons - dark text */
body.single-product .header .action-btn,
body.single-product .header.scrolled .action-btn {
    color: #1a1a1a;
}

body.single-product .header .action-btn svg,
body.single-product .header.scrolled .action-btn svg {
    stroke: #1a1a1a;
}

/* Mobile menu button - dark bars */
body.single-product .header .mobile-menu-btn span,
body.single-product .header.scrolled .mobile-menu-btn span {
    background: #1a1a1a;
}

/* Mega menu */
body.single-product .header .mega-menu {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.single-product .header .mega-col h4 {
    color: #1a1a1a;
}

body.single-product .header .mega-col a {
    color: #666;
}

body.single-product .header .mega-col a::after {
    background: #1a1a1a;
}

body.single-product .header .mega-col a:hover {
    color: #1a1a1a;
}

/* Mega banner text stays white on image */
body.single-product .header .mega-banner-text {
    color: #fff;
}

body.single-product .header .mega-banner-text h3 {
    color: #fff;
}

body.single-product .header .mega-banner-text p {
    color: #fff;
}

.woocommerce-product-wrapper .container {
    width: 100%;
    max-width: var(--container-max, 1600px);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Cart & Checkout Page Header Styles
   ============================================ */

body.woocommerce-cart .header,
body.woocommerce-cart .header.scrolled,
body.woocommerce-checkout .header,
body.woocommerce-checkout .header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

body.woocommerce-cart .header .header-inner,
body.woocommerce-checkout .header .header-inner {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.woocommerce-cart .header .logo,
body.woocommerce-cart .header .nav a,
body.woocommerce-cart .header .action-btn,
body.woocommerce-cart .header .dropdown-toggle,
body.woocommerce-checkout .header .logo,
body.woocommerce-checkout .header .nav a,
body.woocommerce-checkout .header .action-btn,
body.woocommerce-checkout .header .dropdown-toggle {
    color: #1a1a1a;
}

body.woocommerce-cart .header .action-btn svg,
body.woocommerce-cart .header .dropdown-toggle svg,
body.woocommerce-checkout .header .action-btn svg,
body.woocommerce-checkout .header .dropdown-toggle svg {
    stroke: #1a1a1a;
}

body.woocommerce-cart .header .mobile-menu-btn span,
body.woocommerce-checkout .header .mobile-menu-btn span {
    background: #1a1a1a;
}

.cart-page {
    padding-top: 140px;
    padding-bottom: 120px;
    background: #fff;
    min-height: 100vh;
}

.cart-breadcrumb {
    font-size: 15px;
    color: var(--color-text-light, #888);
    margin-bottom: 50px;
}

.cart-breadcrumb a {
    color: var(--color-text, #333);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cart-breadcrumb span {
    margin: 0 10px;
    color: var(--color-text-muted, #999);
}

.cart-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    font-size: 15px;
    color: var(--color-text, #333);
}

.cart-table-header > div:first-child {
    padding-left: 50px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-remove {
    flex-shrink: 0;
}

.cart-item-remove {
    color: var(--color-text-muted, #999);
    transition: var(--transition, all 0.3s ease);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
}

.cart-item-remove:hover {
    color: #c44;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: #fafafa;
    border: 1px solid var(--color-border, #e5e5e5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text, #333);
}

.cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: var(--color-dark, #1a1a1a);
}

.cart-item-price,
.cart-item-subtotal {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text, #333);
}

.cart-item-price {
    color: var(--color-text-light, #888);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border, #e5e5e5);
    height: 38px;
    width: fit-content;
}

.cart-item-quantity .quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity input[type="number"] {
    width: 40px;
    height: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text, #333);
    border: none;
    border-left: 1px solid var(--color-border, #e5e5e5);
    border-right: 1px solid var(--color-border, #e5e5e5);
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
    background: transparent;
}

.cart-item-quantity input[type="number"]::-webkit-outer-spin-button,
.cart-item-quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.cart-coupon {
    display: flex;
    gap: 10px;
}

.cart-coupon input {
    flex: 1;
    max-width: 220px;
    padding: 12px 16px;
    border: 1px solid var(--color-border, #e5e5e5);
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: var(--transition, all 0.3s ease);
}

.cart-coupon input:focus {
    border-color: var(--color-text, #333);
}

.cart-coupon button,
.btn-update-cart {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--color-dark, #1a1a1a);
    border: 1px solid var(--color-dark, #1a1a1a);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.cart-coupon button:hover,
.btn-update-cart:hover {
    background: var(--color-dark-hover, #333);
}

/* Cart Totals - Custom styling */
.cart-totals-wrapper {
    position: sticky;
    top: 100px;
}

.cart-collaterals .cart_totals {
    border: 1px solid var(--color-border, #e5e5e5);
    padding: 32px;
}

.cart-collaterals .cart_totals > h2,
.cart-collaterals .cart_totals .cart-totals-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 28px;
    color: var(--color-text, #333);
}

/* Support both table and div layouts */
.cart-collaterals .shop_table,
.cart-collaterals .cart-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-collaterals .shop_table tr,
.cart-collaterals .cart-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    font-size: 15px;
}

.cart-collaterals .shop_table tr.cart-subtotal,
.cart-collaterals .cart-totals-row.cart-subtotal {
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.cart-collaterals .shop_table tr.order-total,
.cart-collaterals .cart-totals-row.order-total {
    border-bottom: none;
    padding: 20px 0;
}

.cart-collaterals .shop_table th,
.cart-collaterals .cart-totals-label {
    font-weight: 400;
    color: var(--color-text, #333);
    text-align: left;
}

.cart-collaterals .shop_table td,
.cart-collaterals .cart-totals-value {
    color: var(--color-text-light, #888);
    font-weight: 500;
    text-align: right;
}

.cart-collaterals .shop_table tr.order-total th,
.cart-collaterals .cart-totals-row.order-total .cart-totals-label {
    font-size: 16px;
    font-weight: 500;
}

.cart-collaterals .shop_table tr.order-total td,
.cart-collaterals .cart-totals-row.order-total .cart-totals-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text, #333);
}

/* Shipping options in cart totals */
.cart-collaterals .woocommerce-shipping-totals,
.cart-collaterals .cart-totals-row.shipping {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.cart-collaterals .woocommerce-shipping-totals th,
.cart-collaterals .cart-totals-row.shipping .cart-totals-label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.cart-collaterals .woocommerce-shipping-totals td,
.cart-collaterals .cart-totals-row.shipping .cart-totals-value {
    display: block;
    width: 100%;
    text-align: left;
}

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light, #888);
}

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method li input {
    width: 14px;
    height: 14px;
    accent-color: var(--color-dark, #1a1a1a);
    cursor: pointer;
}

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method li label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-collaterals .woocommerce-shipping-totals .woocommerce-Price-amount {
    color: var(--color-text, #333);
    font-weight: 500;
}

.cart-collaterals .woocommerce-shipping-destination {
    text-align: right;
    font-size: 13px;
    color: var(--color-text-light, #888);
    margin-top: 8px;
}

.cart-collaterals .woocommerce-shipping-destination strong {
    color: var(--color-text, #333);
    font-weight: 500;
}

.cart-collaterals .woocommerce-shipping-calculator {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #333);
    margin-top: 8px;
}

.cart-collaterals .woocommerce-shipping-calculator > a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Coupon discount row */
.cart-collaterals .cart-discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    font-size: 15px;
}

.cart-collaterals .cart-discount th,
.cart-collaterals .cart-discount .cart-totals-label {
    color: var(--color-text, #333);
    font-weight: 400;
}

.cart-collaterals .cart-discount td,
.cart-collaterals .cart-discount .cart-totals-value {
    color: var(--color-text-light, #888);
    font-weight: 500;
}

.cart-collaterals .cart-discount td a.woocommerce-remove-coupon,
.cart-collaterals .cart-discount .cart-totals-value a.woocommerce-remove-coupon {
    color: #c44;
    text-decoration: none;
    font-size: 12px;
    margin-left: 8px;
}

/* ============================================
   WooCommerce Blocks - Coupon Button
   ============================================ */

.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
    background: var(--color-dark, #1a1a1a) !important;
    background-color: var(--color-dark, #1a1a1a) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-dark, #1a1a1a) !important;
    transition: var(--transition, all 0.3s ease) !important;
}

.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:hover {
    background: var(--color-dark-hover, #333) !important;
    background-color: var(--color-dark-hover, #333) !important;
    border-color: var(--color-dark-hover, #333) !important;
    color: #ffffff !important;
}

.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button span,
.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button .wc-block-components-button__text {
    color: #ffffff !important;
}

/* ============================================
   WooCommerce Blocks - Place Order Button
   ============================================ */

.wc-block-components-checkout-place-order-button {
    background: var(--color-dark, #1a1a1a) !important;
    background-color: var(--color-dark, #1a1a1a) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-dark, #1a1a1a) !important;
    transition: var(--transition, all 0.3s ease) !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: var(--color-dark-hover, #333) !important;
    background-color: var(--color-dark-hover, #333) !important;
    border-color: var(--color-dark-hover, #333) !important;
    color: #ffffff !important;
}

.wc-block-components-checkout-place-order-button span,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
    color: #ffffff !important;
}

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

body.woocommerce-checkout {
    background: #fff;
}

body.woocommerce-checkout .site-main {
    padding-top: 140px;
    padding-bottom: 120px;
    padding-left: 65px;
    padding-right: 65px;
}

.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

/* Checkout breadcrumb / title */
.woocommerce-checkout .woocommerce::before {
    content: '';
    display: block;
}

.woocommerce-checkout .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left column - forms */
.woocommerce-checkout .col2-set {
    width: 100%;
    float: none;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100%;
    float: none;
}

.woocommerce-checkout h3 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text, #333);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
}

.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-coupon-form {
    margin-bottom: 30px;
}

.woocommerce-checkout .woocommerce-info {
    background: #f9f9f9;
    border: 1px solid var(--color-border, #e5e5e5);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text, #333);
    border-radius: 0;
}

.woocommerce-checkout .woocommerce-info a {
    color: var(--color-dark, #1a1a1a);
    text-decoration: underline;
}

/* Form fields */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    padding: 0;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text, #333);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.woocommerce-checkout .form-row .required {
    color: #c44;
    text-decoration: none;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--color-text, #333);
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    line-height: 1.5;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: var(--color-dark, #1a1a1a);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: auto;
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 0;
    padding: 12px 16px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: var(--color-text, #333);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 12px;
}

.woocommerce-checkout .select2-dropdown {
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 0;
}

/* Create account & ship to different address checkbox */
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    margin-top: 24px;
}

.woocommerce-checkout .woocommerce-account-fields .form-row,
.woocommerce-checkout .woocommerce-shipping-fields .form-row {
    margin-bottom: 12px;
}

.woocommerce-checkout .woocommerce-account-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.woocommerce-checkout .woocommerce-account-fields input[type="checkbox"],
.woocommerce-checkout .woocommerce-shipping-fields input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-dark, #1a1a1a);
    cursor: pointer;
}

/* Order notes */
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 24px;
}

.woocommerce-checkout .woocommerce-additional-fields h3 {
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-additional-fields textarea {
    min-height: 120px;
    resize: vertical;
}

/* Right column - order review */
.woocommerce-checkout #order_review {
    width: 100%;
    float: none;
    background: #fafafa;
    border: 1px solid var(--color-border, #e5e5e5);
    padding: 36px;
    position: sticky;
    top: 120px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead {
    display: none;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody td {
    padding: 18px 0;
    font-size: 14px;
    vertical-align: top;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-name {
    color: var(--color-text, #333);
    padding-right: 16px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-name .variation {
    font-size: 12px;
    color: var(--color-text-light, #888);
    margin-top: 6px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-name .variation dd {
    margin: 0;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-name .product-quantity {
    font-size: 13px;
    color: var(--color-text-light, #888);
    font-weight: 400;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 500;
    color: var(--color-text, #333);
    white-space: nowrap;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td {
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 400;
    color: var(--color-text-light, #888);
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 500;
    color: var(--color-text, #333);
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text, #333);
    border-bottom: none;
    padding-top: 18px;
}

/* Coupon on checkout */
.woocommerce-checkout .checkout_coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.woocommerce-checkout .checkout_coupon .form-row-first {
    flex: 1;
    min-width: 200px;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .checkout_coupon .form-row-last {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .checkout_coupon input[type="text"] {
    width: 100%;
    margin-bottom: 0;
}

.woocommerce-checkout .checkout_coupon button[type="submit"],
.woocommerce-checkout .checkout_coupon .button,
.woocommerce-checkout .checkout_coupon button.button {
    padding: 14px 28px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: var(--color-dark, #1a1a1a) !important;
    border: 1px solid var(--color-dark, #1a1a1a) !important;
    cursor: pointer !important;
    transition: var(--transition, all 0.3s ease) !important;
    white-space: nowrap !important;
    height: 100% !important;
    border-radius: 0 !important;
}

.woocommerce-checkout .checkout_coupon button[type="submit"]:hover,
.woocommerce-checkout .checkout_coupon .button:hover,
.woocommerce-checkout .checkout_coupon button.button:hover {
    background: var(--color-dark-hover, #333) !important;
    border-color: var(--color-dark-hover, #333) !important;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout .wc_payment_methods {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
}

.woocommerce-checkout .wc_payment_methods .wc_payment_method {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.woocommerce-checkout .wc_payment_methods .wc_payment_method:first-child {
    padding-top: 0;
}

.woocommerce-checkout .wc_payment_methods .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #333);
    cursor: pointer;
}

.woocommerce-checkout .wc_payment_methods .wc_payment_method > input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-dark, #1a1a1a);
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.woocommerce-checkout .wc_payment_methods .payment_box {
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    font-size: 13px;
    color: var(--color-text-light, #888);
    line-height: 1.6;
}

.woocommerce-checkout .wc_payment_methods .payment_box p {
    margin: 0;
}

.woocommerce-checkout .wc_payment_methods .payment_box fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout .wc_payment_methods .payment_box .form-row {
    margin-bottom: 14px;
}

.woocommerce-checkout .wc_payment_methods .payment_box .form-row label {
    font-size: 12px;
    margin-bottom: 6px;
}

.woocommerce-checkout .wc_payment_methods .payment_box input,
.woocommerce-checkout .wc_payment_methods .payment_box select {
    padding: 10px 12px;
    font-size: 13px;
}

/* Place order button */
.woocommerce-checkout .place-order {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce-checkout #place_order,
.woocommerce-checkout .place-order .button.alt,
.woocommerce-checkout .place-order .button,
.woocommerce-checkout .place-order button[type="submit"] {
    width: 100% !important;
    padding: 20px 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: var(--color-dark, #1a1a1a) !important;
    border: 1px solid var(--color-dark, #1a1a1a) !important;
    cursor: pointer !important;
    transition: var(--transition, all 0.3s ease) !important;
    display: block !important;
    text-align: center !important;
    letter-spacing: 0.3px;
    border-radius: 0 !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout .place-order .button.alt:hover,
.woocommerce-checkout .place-order .button:hover,
.woocommerce-checkout .place-order button[type="submit"]:hover {
    background: var(--color-dark-hover, #333) !important;
    border-color: var(--color-dark-hover, #333) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

/* Privacy policy text */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 13px;
    color: var(--color-text-light, #888);
    margin-bottom: 20px;
    line-height: 1.6;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--color-dark, #1a1a1a);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-dark, #1a1a1a);
    cursor: pointer;
    flex-shrink: 0;
}

/* Validation errors */
.woocommerce-checkout .woocommerce-invalid input,
.woocommerce-checkout .woocommerce-invalid select {
    border-color: #c44;
}

.woocommerce-checkout .woocommerce-error {
    background: #fff0f0;
    border: 1px solid #c44;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #c44;
    border-radius: 0;
}

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

/* Login form on checkout */
.woocommerce-checkout .woocommerce-form-login {
    background: #fafafa;
    border: 1px solid var(--color-border, #e5e5e5);
    padding: 28px;
    margin-bottom: 32px;
}

.woocommerce-checkout .woocommerce-form-login p:first-child {
    font-size: 14px;
    color: var(--color-text-light, #888);
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-form-login .form-row {
    margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce-form-login .button {
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--color-dark, #1a1a1a);
    border: 1px solid var(--color-dark, #1a1a1a);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.woocommerce-checkout .woocommerce-form-login .button:hover {
    background: var(--color-dark-hover, #333);
}

.woocommerce-checkout .woocommerce-form-login .lost_password {
    font-size: 13px;
    margin-top: 12px;
}

.woocommerce-checkout .woocommerce-form-login .lost_password a {
    color: var(--color-text-light, #888);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-checkout .woocommerce-form-login .lost_password a:hover {
    color: var(--color-dark, #1a1a1a);
}

/* Shipping methods in order review */
.woocommerce-checkout .woocommerce-shipping-totals td {
    text-align: right;
}

.woocommerce-checkout .woocommerce-shipping-totals ul#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-checkout .woocommerce-shipping-totals ul#shipping_method li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light, #888);
}

.woocommerce-checkout .woocommerce-shipping-totals ul#shipping_method li input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-dark, #1a1a1a);
    cursor: pointer;
}

.woocommerce-checkout .woocommerce-shipping-totals ul#shipping_method li label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.woocommerce-checkout .woocommerce-shipping-totals .woocommerce-Price-amount {
    color: var(--color-text, #333);
    font-weight: 500;
}

/* Responsive checkout */
@media (max-width: 1024px) {
    body.woocommerce-checkout .site-main {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .woocommerce-checkout .woocommerce-checkout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    body.woocommerce-checkout .site-main {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .woocommerce-checkout #order_review {
        padding: 28px;
        position: static;
    }
}

@media (max-width: 768px) {
    body.woocommerce-checkout .site-main {
        padding-top: 90px;
        padding-bottom: 60px;
    }
    
    body.woocommerce-checkout .site-main {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .woocommerce-checkout #order_review {
        padding: 20px;
    }
    
    .woocommerce-checkout .checkout_coupon {
        flex-direction: column;
    }
    
    .woocommerce-checkout .checkout_coupon .form-row-first {
        min-width: 100%;
    }
    
    .woocommerce-checkout .checkout_coupon button[type="submit"] {
        width: 100% !important;
    }
}

/* Proceed to checkout button */
.wc-proceed-to-checkout {
    margin-top: 8px;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    padding: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--color-dark, #1a1a1a);
    border: 1px solid var(--color-dark, #1a1a1a);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    display: block;
    text-align: center;
    text-decoration: none;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--color-dark-hover, #333);
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--color-text-light, #888);
}

.return-to-shop {
    text-align: center;
    margin-top: 20px;
}

.return-to-shop .button {
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--color-dark, #1a1a1a);
    border: 1px solid var(--color-dark, #1a1a1a);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition, all 0.3s ease);
}

.return-to-shop .button:hover {
    background: var(--color-dark-hover, #333);
}

/* Cross sells */
.cross-sells {
    margin-top: 80px;
}

.cross-sells > h2 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--color-text, #333);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-detail-inner {
        gap: 50px;
    }
    
    .from-collection-slider {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .from-collection .product-card.full-image:nth-child(4n+1) {
        border-left: none;
    }
    
    .from-collection .product-card.full-image:nth-child(3n+1) {
        border-left: 1px solid var(--color-border, #e5e5e5);
    }
    
    .from-collection .product-list-item:nth-child(4n+1) {
        border-left: none;
    }
    
    .from-collection .product-list-item:nth-child(3n+1) {
        border-left: 1px solid var(--color-border, #e5e5e5);
    }
}

@media (max-width: 1024px) {
    .product-detail-inner {
        gap: 40px;
    }
    
    .gallery-thumbs {
        width: 70px;
    }
    
    .gallery-thumb {
        width: 70px;
        height: 90px;
    }
    
    .gallery-nav-btn {
        width: 31px;
    }
    
    .cart-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .cart-table-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 20px 0;
    }
    
    .cart-item-product {
        grid-column: 1 / -1;
    }
    
    .cart-item-price::before {
        content: 'Price: ';
        font-weight: 400;
        color: var(--color-text-light, #888);
    }
    
    .cart-item-subtotal {
        text-align: right;
    }
    
    .cart-item-subtotal::before {
        content: 'Subtotal: ';
        font-weight: 400;
        color: var(--color-text-light, #888);
    }
    
    .cart-totals-wrapper {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    
    .product-detail-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .product-detail-gallery {
        flex-direction: column-reverse;
    }
    
    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .product-detail-info {
        padding-top: 0;
    }
    
    .product-detail-name {
        font-size: 28px;
    }
    
    .product-detail-actions {
        gap: 12px;
    }
    
    .product-detail-actions form.cart,
    .product-detail-actions form.shop-ajax-cart {
        gap: 12px;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        flex: 1;
        padding: 0 24px;
    }
    
    .product-description-section {
        margin-bottom: 60px;
    }
    
    .product-description-title {
        font-size: 24px;
    }
    
    .product-description-notes {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .from-collection-title {
        font-size: 24px;
    }
    
    .from-collection-slider {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .from-collection .product-card.full-image:nth-child(3n+1) {
        border-left: none;
    }
    
    .from-collection .product-card.full-image:nth-child(2n+1) {
        border-left: 1px solid var(--color-border, #e5e5e5);
    }
    
    .from-collection .product-card.full-image,
    .from-collection .product-list-item {
        height: 400px !important;
    }
    
    .from-collection .product-list-item:nth-child(3n+1) {
        border-left: none;
    }
    
    .from-collection .product-list-item:nth-child(2n+1) {
        border-left: 1px solid var(--color-border, #e5e5e5);
    }
    
    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }
    
    .woocommerce-tabs ul.tabs li a {
        padding: 12px 20px;
    }
    
    .cart-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .cart-breadcrumb {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .cart-inner {
        gap: 32px;
    }
    
    /* Cart items - card style on mobile */
    .cart-item {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--color-border, #e5e5e5);
        border-radius: 8px;
        margin-bottom: 12px;
        background: #fafafa;
    }
    
    .cart-item-product {
        width: 100%;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-name {
        font-size: 14px;
        flex: 1;
        line-height: 1.4;
    }
    
    .cart-item-remove {
        align-self: flex-start;
        padding: 4px;
    }
    
    .cart-item-price,
    .cart-item-subtotal {
        font-size: 14px;
    }
    
    .cart-item-price {
        flex: 1;
    }
    
    .cart-item-price::before {
        content: 'Price: ';
        font-weight: 400;
        color: var(--color-text-light, #888);
        font-size: 12px;
    }
    
    .cart-item-quantity {
        margin: 0 auto;
    }
    
    .cart-item-subtotal {
        flex: 1;
        text-align: right;
    }
    
    .cart-item-subtotal::before {
        content: 'Subtotal: ';
        font-weight: 400;
        color: var(--color-text-light, #888);
        font-size: 12px;
    }
    
    /* Cart actions */
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }
    
    .cart-coupon {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-coupon input {
        max-width: none;
        width: 100%;
        padding: 10px 14px;
    }
    
    .cart-coupon button,
    .btn-update-cart {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
    
    /* Cart totals */
    .cart-totals-wrapper {
        position: static;
    }
    
    .cart-collaterals .cart_totals {
        padding: 20px;
    }
    
    .cart-collaterals .cart_totals > h2,
    .cart-collaterals .cart_totals .cart-totals-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .cart-collaterals .shop_table tr,
    .cart-collaterals .cart-totals-row {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .cart-collaterals .shop_table tr.order-total td,
    .cart-collaterals .cart-totals-row.order-total .cart-totals-value {
        font-size: 18px;
    }
    
    .cart-collaterals .woocommerce-shipping-totals td,
    .cart-collaterals .cart-totals-row.shipping .cart-totals-value {
        text-align: right;
        margin-top: 4px;
    }
    
    .cart-collaterals .woocommerce-shipping-totals ul#shipping_method li,
    .cart-collaterals .cart-totals-row.shipping ul#shipping_method li {
        justify-content: flex-end;
    }
    
    /* Proceed to checkout button */
    .wc-proceed-to-checkout .checkout-button,
    .btn-checkout {
        padding: 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .featured-text h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        padding: 0;
    }
    
    .product-detail-actions form.cart,
    .product-detail-actions form.shop-ajax-cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        align-self: flex-start;
    }
    
    .from-collection-slider {
        grid-template-columns: 1fr !important;
    }
    
    .from-collection .product-card.full-image:nth-child(2n+1) {
        border-left: none;
    }
    
    .from-collection .product-card.full-image,
    .from-collection .product-list-item {
        border-left: 1px solid var(--color-border, #e5e5e5);
        border-right: 1px solid var(--color-border, #e5e5e5);
        height: 480px !important;
    }
    
    .from-collection .product-list-item:nth-child(2n+1) {
        border-left: none;
    }
}
