/* ============================================
   TBD CREATIONZ - UNIFIED PRODUCT GRID STYLES
   Apply same styling to ALL product grids site-wide
============================================ */

/* ============================================
   SECTION 1: CSS VARIABLES & FONTS
============================================ */
:root {
    --tbd-pink: #E04F8E;
    --tbd-magenta: #CB0EBD;
    --tbd-purple: #551AC6;
    --tbd-dark: #1a1a1a;
}

/* ============================================
   SECTION 2: TBD WIDGET - CATEGORY TABS
============================================ */

.tbd-category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.tbd-tab-btn {
    padding: 10px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--tbd-dark);
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(224, 79, 142, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tbd-tab-btn:hover {
    border-color: var(--tbd-pink);
    color: var(--tbd-pink);
}

.tbd-tab-btn.active {
    background: linear-gradient(135deg, var(--tbd-pink) 0%, var(--tbd-magenta) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(224, 79, 142, 0.4);
}

/* Desktop Tab Layouts */
@media (min-width: 768px) {
    .tbd-desktop-horizontal-scroll .tbd-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .tbd-desktop-horizontal-wrap .tbd-category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tbd-desktop-pills .tbd-category-tabs {
        gap: 8px;
    }
    
    .tbd-desktop-underline .tbd-category-tabs {
        gap: 0;
        border-bottom: 2px solid #eee;
    }
    
    .tbd-desktop-underline .tbd-tab-btn {
        border-radius: 0;
        border: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        background: transparent;
    }
    
    .tbd-desktop-underline .tbd-tab-btn.active,
    .tbd-desktop-underline .tbd-tab-btn:hover {
        border-bottom-color: var(--tbd-pink);
        background: transparent;
        color: var(--tbd-pink);
        box-shadow: none;
    }
}

/* Mobile Tab Layouts */
@media (max-width: 767px) {
    .tbd-mobile-horizontal-scroll .tbd-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tbd-mobile-horizontal-wrap .tbd-category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tbd-mobile-pills .tbd-category-tabs {
        gap: 6px;
    }
    
    .tbd-mobile-pills .tbd-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .tbd-mobile-underline .tbd-category-tabs {
        gap: 0;
        border-bottom: 2px solid #eee;
    }
    
    .tbd-mobile-underline .tbd-tab-btn {
        border-radius: 0;
        border: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        background: transparent;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tbd-mobile-underline .tbd-tab-btn.active {
        border-bottom-color: var(--tbd-pink);
        background: transparent;
        color: var(--tbd-pink);
        box-shadow: none;
    }
}

/* ============================================
   SECTION 3: PRODUCT GRID LAYOUT
============================================ */

/* All product grids - consistent gap and layout */
.products.jas-row,
.woocommerce ul.products,
ul.products,
.tbd-products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Product items - 4 columns on desktop */
.products.jas-row > div.product,
.woocommerce ul.products li.product,
ul.products li.product,
.products > .product,
.tbd-product-card {
    flex: 0 0 calc(25% - 18px) !important;
    max-width: calc(25% - 18px) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 3 columns on tablet */
@media (max-width: 1024px) {
    .products.jas-row > div.product,
    .woocommerce ul.products li.product,
    ul.products li.product,
    .products > .product,
    .tbd-product-card {
        flex: 0 0 calc(33.333% - 16px) !important;
        max-width: calc(33.333% - 16px) !important;
    }
}

/* 2 columns on mobile */
@media (max-width: 768px) {
    .products.jas-row,
    .woocommerce ul.products,
    ul.products,
    .tbd-products-grid {
        gap: 16px !important;
    }
    
    .products.jas-row > div.product,
    .woocommerce ul.products li.product,
    ul.products li.product,
    .products > .product,
    .tbd-product-card {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
}

/* ============================================
   SECTION 4: PRODUCT CARD STYLING
============================================ */

/* Card container */
.product-inner,
.tbd-product-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(224, 79, 142, 0.15) !important;
    overflow: visible !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 24px rgba(224, 79, 142, 0.08) !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-inner:hover,
.tbd-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(224, 79, 142, 0.18) !important;
    border-color: rgba(224, 79, 142, 0.3) !important;
}

.tbd-product-card.tbd-out-of-stock {
    opacity: 0.85;
}

/* ============================================
   SECTION 5: PRODUCT IMAGE
============================================ */

/* Image container */
.product-image,
.tbd-product-image {
    position: relative !important;
    width: 100% !important;
    padding-top: 120% !important;
    background: linear-gradient(145deg, #fce4ec 0%, #f8bbd9 50%, #f3e5f5 100%) !important;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
}

/* Image link wrapper */
.product-image > a,
.product-image > a.db,
.product-image > .product-image-flip,
.tbd-product-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

/* Disable link on hover for button clicks */
.product-inner:hover .product-image > a,
.product-inner:hover .product-image > a.db,
.tbd-product-card:hover .tbd-product-link,
li.product:hover .product-image > a {
    pointer-events: none !important;
}

/* Product images */
.product-image img,
.tbd-product-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    transition: transform 0.5s ease !important;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1)) !important;
}

.product-inner:hover .product-image img,
.tbd-product-card:hover .tbd-product-img {
    transform: scale(1.05) !important;
}

/* Secondary image on hover */
.tbd-product-img--secondary {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.tbd-product-card:hover .tbd-product-img--primary {
    opacity: 0 !important;
}

.tbd-product-card:hover .tbd-product-img--secondary {
    opacity: 1 !important;
}

/* Image flip for WooCommerce theme */
.product-image-flip {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.product-image-flip a.back {
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.product-inner:hover .product-image-flip a.back {
    opacity: 1 !important;
}

.product-inner:hover .product-image-flip > a:first-child img {
    opacity: 0 !important;
}

/* ============================================
   SECTION 6: HOVER OVERLAY & BUTTONS
============================================ */

/* Hover overlay - using ::after pseudo element */
.product-image::after,
.tbd-product-image::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
    border-radius: 20px 20px 0 0 !important;
}

.product-inner:hover .product-image::after,
.tbd-product-card:hover .tbd-product-image::after,
li.product:hover .product-image::after {
    opacity: 1 !important;
}

/* Hide theme's button wrappers - we don't need them */
.product-image .product-btn,
.product-image .jas-action,
.product-image .product-action,
.product-image .jas-add-btn,
.product-image .hover-action,
.product-image .wrap-addto,
.product-inner .product-btn,
.product-inner .jas-action,
.product-inner .wrap-addto,
li.product .product-btn,
li.product .jas-action,
li.product .wrap-addto {
    display: none !important;
}

/* TBD Hover Actions Container */
.tbd-hover-actions {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    z-index: 100 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.tbd-product-card:hover .tbd-hover-actions {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   SECTION 7: BUTTON STYLES (ALL BUTTONS)
============================================ */

/* All hover buttons - base styles */
.product-image a.button,
.product-image a.add_to_cart_button,
.product-image a.product_type_variable,
.product-image a.product_type_simple,
.product-image a.btn-quickview,
.product-image a[class*="quickview"],
.product-inner a.button,
.product-inner a.add_to_cart_button,
.product-inner a.product_type_variable,
.product-inner a.product_type_simple,
.product-inner a.btn-quickview,
li.product a.button,
li.product a.add_to_cart_button,
li.product a.product_type_variable,
li.product a.product_type_simple,
li.product a.btn-quickview,
.tbd-quick-view-btn,
.tbd-add-to-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    margin: 0 !important;
}

/* Add to Cart / Select Options button */
.product-image a.button,
.product-image a.add_to_cart_button,
.product-image a.product_type_variable,
.product-image a.product_type_simple,
.product-inner a.button,
.product-inner a.add_to_cart_button,
.product-inner a.product_type_variable,
.product-inner a.product_type_simple,
li.product a.button,
li.product a.add_to_cart_button,
li.product a.product_type_variable,
li.product a.product_type_simple,
.tbd-add-to-cart-btn {
    background: linear-gradient(135deg, #E04F8E 0%, #CB0EBD 100%) !important;
    color: #fff !important;
}

/* Quick View button */
.product-image a.btn-quickview,
.product-image a[class*="quickview"],
.product-inner a.btn-quickview,
li.product a.btn-quickview,
.tbd-quick-view-btn {
    background: #fff !important;
    color: #1a1a1a !important;
}

/* Button hover effects */
.product-image a.button:hover,
.product-image a.add_to_cart_button:hover,
.product-inner a.button:hover,
li.product a.button:hover,
.tbd-add-to-cart-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(224, 79, 142, 0.4) !important;
}

.product-image a.btn-quickview:hover,
.product-inner a.btn-quickview:hover,
.tbd-quick-view-btn:hover {
    transform: scale(1.05) !important;
    color: #E04F8E !important;
}

/* ============================================
   SECTION 8: DESKTOP BUTTON POSITIONING
============================================ */

@media (min-width: 769px) {
    /* WooCommerce theme buttons - absolute centered */
    .product-image a.button,
    .product-image a.add_to_cart_button,
    .product-image a.product_type_variable,
    .product-image a.product_type_simple,
    .product-inner a.button,
    .product-inner a.add_to_cart_button,
    .product-inner a.product_type_variable,
    .product-inner a.product_type_simple,
    li.product a.button,
    li.product a.add_to_cart_button,
    li.product a.product_type_variable,
    li.product a.product_type_simple {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .product-inner:hover a.button,
    .product-inner:hover a.add_to_cart_button,
    .product-inner:hover a.product_type_variable,
    .product-inner:hover a.product_type_simple,
    li.product:hover a.button,
    li.product:hover a.add_to_cart_button,
    li.product:hover a.product_type_variable,
    li.product:hover a.product_type_simple {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    /* Quick View button - positioned above */
    .product-image a.btn-quickview,
    .product-image a[class*="quickview"],
    .product-inner a.btn-quickview,
    li.product a.btn-quickview {
        position: absolute !important;
        top: 35% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .product-inner:hover a.btn-quickview,
    .product-inner:hover a[class*="quickview"],
    li.product:hover a.btn-quickview {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    /* TBD widget buttons - use flexbox from container */
    .tbd-quick-view-btn,
    .tbd-add-to-cart-btn {
        position: relative !important;
        transform: scale(0.9) !important;
        opacity: 0 !important;
    }
    
    .tbd-product-card:hover .tbd-quick-view-btn,
    .tbd-product-card:hover .tbd-add-to-cart-btn {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

/* ============================================
   SECTION 9: MOBILE BUTTON POSITIONING
============================================ */

@media (max-width: 768px) {
    /* Mobile: Buttons always visible at bottom */
    .product-image a.button,
    .product-image a.add_to_cart_button,
    .product-image a.product_type_variable,
    .product-image a.product_type_simple,
    .product-inner a.button,
    .product-inner a.add_to_cart_button,
    .product-inner a.product_type_variable,
    .product-inner a.product_type_simple,
    li.product a.button,
    li.product a.add_to_cart_button,
    li.product a.product_type_variable,
    li.product a.product_type_simple,
    .tbd-add-to-cart-btn {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 8px 16px !important;
        font-size: 11px !important;
    }
    
    /* Hide Quick View on mobile */
    .product-image a.btn-quickview,
    .product-image a[class*="quickview"],
    .product-inner a.btn-quickview,
    li.product a.btn-quickview,
    .tbd-quick-view-btn {
        display: none !important;
    }
    
    /* TBD hover actions - always visible on mobile */
    .tbd-hover-actions {
        opacity: 1 !important;
        visibility: visible !important;
        justify-content: flex-end !important;
        padding-bottom: 10px !important;
        background: transparent !important;
    }
    
    .tbd-product-image::after {
        display: none !important;
    }
}

/* ============================================
   SECTION 10: BADGES
============================================ */

.product-image .badge,
.badge,
.tbd-badges {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 50 !important;
}

.badge span.new,
.badge span.onsale,
.badge span.sold-out,
.tbd-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 12px !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-radius: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.badge span.new,
.tbd-badge--new {
    background: linear-gradient(135deg, #00c853, #69f0ae) !important;
    color: #fff !important;
}

.badge span.onsale,
.tbd-badge--sale {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    color: #fff !important;
}

.badge span.sold-out,
.tbd-badge--sold-out {
    background: linear-gradient(135deg, #757575, #9e9e9e) !important;
    color: #fff !important;
}

/* ============================================
   SECTION 11: WISHLIST HEART
============================================ */

.product-image .yith-wcwl-add-to-wishlist,
.yith-wcwl-add-to-wishlist,
.tbd-wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 50 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.yith-wcwl-add-to-wishlist a,
.tbd-wishlist-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.yith-wcwl-add-to-wishlist a:hover,
.tbd-wishlist-toggle:hover {
    background: #E04F8E !important;
    transform: scale(1.1) !important;
}

.yith-wcwl-add-to-wishlist a i,
.tbd-wishlist-toggle svg {
    color: #E04F8E !important;
    transition: color 0.3s ease !important;
}

.yith-wcwl-add-to-wishlist a:hover i,
.tbd-wishlist-toggle:hover svg {
    color: #fff !important;
}

/* Filled heart when in wishlist */
.yith-wcwl-wishlistexistsbrowse a,
.yith-wcwl-wishlistaddedbrowse a {
    background: #E04F8E !important;
}

.yith-wcwl-wishlistexistsbrowse a i,
.yith-wcwl-wishlistaddedbrowse a i {
    color: #fff !important;
}

/* ============================================
   SECTION 12: PRODUCT INFO (Title, Price)
============================================ */

.product-info,
.tbd-product-info {
    padding: 16px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 0 0 20px 20px !important;
    min-height: 100px !important;
}

.product-title,
.tbd-product-title {
    margin: 0 0 8px 0 !important;
}

.product-title a,
.tbd-product-title a {
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: block !important;
    line-height: 1.4 !important;
}

.product-title a:hover,
.tbd-product-title a:hover {
    color: #E04F8E !important;
}

.product-price,
.tbd-product-price {
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #E04F8E !important;
}

.product-price del,
.tbd-product-price del {
    color: #999 !important;
    font-size: 13px !important;
    margin-right: 6px !important;
}

/* Color Swatches */
.swatch__list {
    display: flex !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
}

.swatch__list--item {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
}

.swatch__list--item:hover {
    transform: scale(1.2) !important;
}

/* ============================================
   SECTION 13: LOAD MORE BUTTON
============================================ */

.tbd-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.tbd-load-more-btn {
    padding: 14px 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--tbd-pink) 0%, var(--tbd-magenta) 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 79, 142, 0.3);
}

.tbd-load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 79, 142, 0.4);
}

.tbd-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   SECTION 14: MOBILE RESPONSIVE TWEAKS
============================================ */

@media (max-width: 768px) {
    .badge,
    .tbd-badges {
        top: 8px !important;
        right: 8px !important;
    }
    
    .badge span.new,
    .badge span.onsale,
    .badge span.sold-out,
    .tbd-badge {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }
    
    .yith-wcwl-add-to-wishlist,
    .tbd-wishlist-btn {
        top: 8px !important;
        left: 8px !important;
    }
    
    .yith-wcwl-add-to-wishlist a,
    .tbd-wishlist-toggle {
        width: 32px !important;
        height: 32px !important;
    }
    
    .product-info,
    .tbd-product-info {
        padding: 12px !important;
        min-height: 80px !important;
    }
    
    .product-title a,
    .tbd-product-title a {
        font-size: 12px !important;
    }
    
    .product-price,
    .tbd-product-price {
        font-size: 14px !important;
    }
    
    .tbd-category-tabs {
        margin-bottom: 20px !important;
    }
    
    .tbd-tab-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .product-image,
    .tbd-product-image {
        padding-top: 130% !important;
    }
    
    .swatch__list--item {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ============================================
   SECTION 15: OUT OF STOCK
============================================ */

.product.outofstock .product-image,
.tbd-product-card.tbd-out-of-stock .tbd-product-image {
    position: relative !important;
}

.product.outofstock .product-image img,
.tbd-product-card.tbd-out-of-stock .tbd-product-img {
    filter: grayscale(30%) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1)) !important;
}

/* ============================================
   SECTION 16: BENTO CATEGORY GRID
============================================ */

.tbd-bento-header {
    text-align: center;
    margin-bottom: 40px;
}

.tbd-bento-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--tbd-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tbd-bento-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--tbd-dark);
    margin: 0;
}

.tbd-bento-title .highlight {
    color: var(--tbd-pink);
    font-style: italic;
}

.tbd-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
}

.tbd-bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.tbd-bento-card.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.tbd-bento-card.bento-wide {
    grid-column: span 2;
}

.tbd-bento-card.bento-tall {
    grid-row: span 2;
}

.tbd-bento-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tbd-bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tbd-bento-card:hover .tbd-bento-image img {
    transform: scale(1.1);
}

.tbd-bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    pointer-events: none;
}

.tbd-bento-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
}

.tbd-bento-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tbd-bento-card:hover .tbd-bento-label {
    background: var(--tbd-pink);
}

.tbd-bento-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tbd-bento-card:hover .tbd-bento-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

.tbd-bento-card-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .tbd-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tbd-bento-title {
        font-size: 32px;
    }
    
    .tbd-bento-grid {
        grid-auto-rows: 150px;
        gap: 12px;
    }
    
    .tbd-bento-content {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    
    .tbd-bento-label {
        padding: 8px 14px;
        font-size: 12px;
    }
}


