/* ==========================================================================
   Hero Tabs - Base Layout (Bulletproof Flexbox)
   ========================================================================== */
.woo-premium-hero-slider { display: flex; width: 100%; align-items: stretch; }
.woo-premium-hero-slider.layout-horizontal { flex-direction: column; }
.woo-premium-hero-slider.layout-horizontal .woo-tabs-nav { display: flex; flex-wrap: nowrap; width: 100%; }
.woo-premium-hero-slider.layout-horizontal .woo-tab-button { flex: 1 1 0; width: 100%; }
.woo-premium-hero-slider.layout-vertical { flex-direction: row; }
.woo-premium-hero-slider.layout-vertical .woo-tabs-nav { display: flex; flex-direction: column; }
.woo-premium-hero-slider.layout-vertical .woo-tab-button { flex: 1 1 0; }

/* ==========================================================================
   Hero Tab Button Structure
   ========================================================================== */
.woo-tab-button {
    display: flex; flex-direction: column; justify-content: flex-end; 
    background-color: #222; background-size: cover; background-position: center; background-repeat: no-repeat;
    cursor: pointer; position: relative; overflow: hidden; 
    border-radius: 8px; padding: 30px; 
}
.woo-tab-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: background-color 0.4s ease; }
.woo-tab-content-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.woo-tab-title { padding: 0; line-height: 1.2; font-weight: 700; transition: color 0.3s ease; }
.woo-tab-desc { line-height: 1.6; max-width: 90%; }
.woo-tab-desc p { margin: 0; }

.woo-tab-btn-wrap { position: relative; z-index: 10; }
.woo-tab-action-btn { 
    display: inline-block; padding: 12px 24px; border: 1px solid #fff; 
    font-size: 14px; font-weight: 600; line-height: 1; transition: all 0.3s ease; 
    background: rgba(255,255,255,0.15); color: #fff;
    text-decoration: none; 
}
.woo-tab-action-btn:hover { text-decoration: none; }
.woo-tab-button.active .woo-tab-action-btn { background-color: #fff !important; color: #000 !important; }

/* ==========================================================================
   Content Panels & Cards
   ========================================================================== */
.woo-tabs-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.woo-tab-panel { display: none; width: 100%; }
.woo-tab-panel.active { display: block; animation: fadeInDesc 0.5s ease-in-out; }
@keyframes fadeInDesc { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.theme-woo-card { display: flex; flex-direction: column; height: 100%; position: relative; background: #ffffff; border-radius: 4px; padding: 15px; border: 1px solid #f2f2f2; }
.theme-woo-img { position: relative; display: block; text-align: center; overflow: hidden; }
.theme-woo-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.theme-woo-img .onsale { position: absolute; top: 5px; left: 5px; z-index: 2; background: #ff4a4a; color: #fff; padding: 3px 10px; font-size: 12px; font-weight: bold; border-radius: 3px; line-height: 1; }
.theme-woo-info { display: flex; flex-direction: column; flex: 1; }
.theme-woo-title { line-height: 1.3; font-size: 16px; font-weight: 600; }
.theme-woo-title a { text-decoration: none; transition: color 0.2s; }
.theme-woo-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; }
.theme-woo-price { font-weight: 700; font-size: 15px; }
.theme-woo-btn .button { display: inline-block; text-align: center; text-decoration: none; border: none; transition: all 0.3s ease; cursor: pointer; padding: 10px 20px; background: #222; color: #fff; }
.theme-woo-btn .added_to_cart { display: none !important; }

/* ==========================================================================
   Swiper Controls
   ========================================================================== */
.my-product-slider { overflow: hidden; padding-bottom: 50px; width: 100%; }
.my-product-slider .custom-swiper-nav { width: 45px; height: 45px; background: #ffffff; border: 1px solid #eaeaea; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; color: #333; transition: all 0.3s ease; top: 40%; z-index: 10; }
.my-product-slider .custom-swiper-nav:hover { background: #333; color: #fff; border-color:#333; }
.my-product-slider .swiper-button-next:after, .my-product-slider .swiper-button-prev:after { display: none; }
.my-product-slider .swiper-pagination-bullet-active { background: #333; }

/* ==========================================================================
   Mobile Responsiveness - STRICT OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Force Column Layout for Main Wrapper */
    .woo-premium-hero-slider.layout-horizontal,
    .woo-premium-hero-slider.layout-vertical { 
        flex-direction: column !important; 
    }
    
    /* 2. Strict Horizontal Swipe Logic for Tabs */
    .woo-premium-hero-slider.layout-horizontal .woo-tabs-nav,
    .woo-premium-hero-slider.layout-vertical .woo-tabs-nav { 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; 
        width: 100% !important; 
        max-width: 100vw !important; 
        overflow-x: auto !important; 
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important; 
        scroll-snap-type: x mandatory !important; 
        padding-bottom: 15px !important; 
        gap: 15px !important;
    }
    
    .woo-premium-hero-slider .woo-tabs-nav::-webkit-scrollbar { height: 4px; }
    .woo-premium-hero-slider .woo-tabs-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

    /* 3. Strict Sizing for Individual Tabs */
    .woo-premium-hero-slider.layout-horizontal .woo-tab-button,
    .woo-premium-hero-slider.layout-vertical .woo-tab-button { 
        flex: 0 0 240px !important; 
        min-height: 140px !important; 
        padding: 20px !important; 
        scroll-snap-align: start !important; 
    }

    /* 4. Hide Descriptions to save space */
    .woo-premium-hero-slider .woo-tab-desc { display: none !important; }
    .woo-premium-hero-slider .woo-tab-action-btn { padding: 8px 16px !important; font-size: 12px !important; }
}

@media (max-width: 480px) {
    .woo-premium-hero-slider.layout-horizontal .woo-tab-button,
    .woo-premium-hero-slider.layout-vertical .woo-tab-button { 
        flex: 0 0 85% !important; /* Makes next tab peek out slightly */
    }
}

/* ==================================================
   Base & Shared Styles for TS Stone Collection
   ================================================== */
.ts-stone-wrapper { width: 100%; background: transparent; box-sizing: border-box; }
.ts-stone-wrapper * { box-sizing: border-box; }

/* --- HEADER STRUCTURE FIX --- */
.ts-stone-header { display: flex; width: 100%; max-width: 100%; }
.ts-stone-text-wrap { display: flex; flex-direction: column; width: 100%; }
.ts-stone-btn-wrap { display: flex; width: 100%; }

.ts-header-layout-stacked { flex-direction: column; gap: 20px; }
.ts-header-layout-split { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
.ts-header-layout-split .ts-stone-text-wrap { flex: 1; width: auto; }
.ts-header-layout-split .ts-stone-btn-wrap { flex-shrink: 0; width: auto; }

/* Desktop Responsive Alignments (Text Block) */
.ts-align-left .ts-stone-text-wrap { align-items: flex-start; text-align: left; margin-left: 0 !important; margin-right: auto !important; }
.ts-align-center .ts-stone-text-wrap { align-items: center; text-align: center; margin-left: auto !important; margin-right: auto !important; }
.ts-align-right .ts-stone-text-wrap { align-items: flex-end; text-align: right; margin-left: auto !important; margin-right: 0 !important; }

.ts-align-left .ts-header-layout-stacked .ts-stone-btn-wrap { justify-content: flex-start; }
.ts-align-center .ts-header-layout-stacked .ts-stone-btn-wrap { justify-content: center; }
.ts-align-right .ts-header-layout-stacked .ts-stone-btn-wrap { justify-content: flex-end; }

@media (max-width: 1024px) {
    .ts-align-tablet-left .ts-stone-text-wrap { align-items: flex-start; text-align: left; }
    .ts-align-tablet-center .ts-stone-text-wrap { align-items: center; text-align: center; }
    .ts-align-tablet-right .ts-stone-text-wrap { align-items: flex-end; text-align: right; }
}

@media (max-width: 767px) {
    .ts-align-mobile-left .ts-stone-text-wrap { align-items: flex-start; text-align: left; }
    .ts-align-mobile-center .ts-stone-text-wrap { align-items: center; text-align: center; }
    .ts-align-mobile-right .ts-stone-text-wrap { align-items: flex-end; text-align: right; }
    
    .ts-header-layout-split { flex-direction: column; align-items: stretch; gap:0px !important; }
    .ts-header-layout-split .ts-stone-btn-wrap { justify-content: flex-start; }
    .ts-align-mobile-center .ts-header-layout-split .ts-stone-btn-wrap { justify-content: center; }
    .ts-align-mobile-right .ts-header-layout-split .ts-stone-btn-wrap { justify-content: flex-end; }
}

.ts-stone-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #888; text-transform: uppercase; margin: 0 0 20px 0; }
.ts-stone-badge span { width: 6px; height: 6px; background: #d9a05b; border-radius: 50%; flex-shrink: 0; }
.ts-dynamic-heading { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 0 0 10px 0; color: #111; font-weight: 700; width: 100%; }
.ts-desc { color: #555; font-size: 16px; line-height: 1.6; margin: 0 0 0 0; width: 100%; }

.ts-stone-btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 28px; border: 1px solid #ddd; border-radius: 50px; color: #111; text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.3s; }
.ts-stone-btn:hover { background: #111; color: #fff; border-color: #111; }

.ts-stone-card { position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; background: #fff; box-shadow: 0 5px 25px rgba(0,0,0,0.03); }
.ts-card-bg { background-size: cover; background-position: center; transition: transform 0.4s ease; width: 100%; }
.ts-stone-card:hover .ts-card-bg { transform: scale(1.05); }

.ts-stone-card-content { position: relative; z-index: 3; padding: 20px; display: flex; justify-content: space-between; align-items: center; width: 100%; }

/* Target classes regardless of selected HTML Tag */
.ts-card-title { margin: 0 0 5px 0; font-size: 18px; font-weight: 600; color: #111; line-height: 1.2; }
.ts-card-subtitle { margin: 0; font-size: 13px; color: #666; display: block; line-height: 1.4; }

.ts-stone-card-arrow { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; background: #f0f0f0; }
.ts-stone-card:hover .ts-stone-card-arrow { background: #111; }
.ts-stone-card-arrow svg { width: 12px; height: 12px; fill: #111; transition: 0.3s; }
.ts-stone-card:hover .ts-stone-card-arrow svg { fill: #fff; }

/* ==================================================
   Layout Direction: HORIZONTAL (CSS GRID)
   ================================================== */
.ts-layout-horizontal { display: grid; grid-template-columns: 35% 1fr; gap: 40px; align-items: center; }
.ts-layout-horizontal .ts-stone-right { display: grid; grid-template-columns: repeat(var(--ts-grid-cols, 3), 1fr); gap: 20px; width: 100%; }

/* ==================================================
   Layout Direction: VERTICAL (FLEX COL)
   ================================================== */
.ts-layout-vertical { display: flex; flex-direction: column; gap: 10px; }
.ts-layout-vertical .ts-stone-right { display: grid; grid-template-columns: repeat(var(--ts-grid-cols, 3), 1fr); gap: 10px; width: 100%; }

/* ==================================================
   Card Style Adjustments referencing .ts-card-title
   ================================================== */
.ts-card-style-overlaid .ts-stone-card { aspect-ratio: 3/4; flex-direction: column; justify-content: flex-end; }
.ts-card-style-overlaid .ts-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.ts-card-style-overlaid .ts-stone-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%); z-index: 2; pointer-events: none; }
.ts-card-style-overlaid .ts-stone-card-content { align-items: flex-end; text-align: left; }
.ts-card-style-overlaid .ts-card-title { color: #fff; }
.ts-card-style-overlaid .ts-card-subtitle { color: #ddd; }
.ts-card-style-overlaid .ts-stone-card-arrow { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.ts-card-style-overlaid .ts-stone-card:hover .ts-stone-card-arrow { background: rgba(255,255,255,0.4); }
.ts-card-style-overlaid .ts-stone-card-arrow svg { fill: #fff; }

.ts-card-style-overlaid_top .ts-stone-card { aspect-ratio: 3/4; flex-direction: column; justify-content: flex-start; }
.ts-card-style-overlaid_top .ts-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.ts-card-style-overlaid_top .ts-stone-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%); z-index: 2; pointer-events: none; }
.ts-card-style-overlaid_top .ts-stone-card-content { align-items: flex-start; text-align: left; }
.ts-card-style-overlaid_top .ts-card-title { color: #fff; }
.ts-card-style-overlaid_top .ts-card-subtitle { color: #ddd; }
.ts-card-style-overlaid_top .ts-stone-card-arrow { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.ts-card-style-overlaid_top .ts-stone-card:hover .ts-stone-card-arrow { background: rgba(255,255,255,0.4); }
.ts-card-style-overlaid_top .ts-stone-card-arrow svg { fill: #fff; }

.ts-card-style-landscape .ts-stone-card { aspect-ratio: 16/10; flex-direction: column; justify-content: flex-end; }
.ts-card-style-landscape .ts-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.ts-card-style-landscape .ts-stone-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%); z-index: 2; pointer-events: none; }
.ts-card-style-landscape .ts-stone-card-content { align-items: center; text-align: left; padding: 15px 20px; }
.ts-card-style-landscape .ts-card-title { color: #fff; font-size: 20px; }
.ts-card-style-landscape .ts-card-subtitle { display: none; }
.ts-card-style-landscape .ts-stone-card-arrow { width: 26px; height: 26px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); }
.ts-card-style-landscape .ts-stone-card:hover .ts-stone-card-arrow { background: rgba(255, 255, 255, 0.25); }
.ts-card-style-landscape .ts-stone-card-arrow svg { width: 10px; height: 10px; fill: #fff; }

.ts-card-style-below .ts-stone-card { flex-direction: column; }
.ts-card-style-above .ts-stone-card { flex-direction: column-reverse; }
.ts-card-style-below .ts-card-bg, .ts-card-style-above .ts-card-bg { aspect-ratio: 4/5; }
.ts-card-style-below .ts-stone-card-content, .ts-card-style-above .ts-stone-card-content { text-align: left; }

.ts-card-style-side_by_side .ts-stone-card,
.ts-card-style-swap .ts-stone-card { flex-direction: row; align-items: stretch; }
.ts-card-style-swap .ts-stone-card:nth-child(even) { flex-direction: row-reverse; }
.ts-card-style-side_by_side .ts-card-bg, .ts-card-style-swap .ts-card-bg { width: 50%; aspect-ratio: 1/1; }
.ts-card-style-side_by_side .ts-stone-card-content, .ts-card-style-swap .ts-stone-card-content { width: 50%; flex-direction: column; justify-content: center; align-items: flex-start; padding: 30px; text-align: left; }
.ts-card-style-side_by_side .ts-stone-card-arrow, .ts-card-style-swap .ts-stone-card-arrow { margin-top: 15px; }

@media (max-width: 1024px) {
    .ts-layout-horizontal { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ts-card-style-overlaid .ts-stone-card,
    .ts-card-style-overlaid_top .ts-stone-card,
    .ts-card-style-below .ts-card-bg,
    .ts-card-style-above .ts-card-bg { aspect-ratio: 1 / 1; }
    
    .ts-card-style-side_by_side .ts-stone-card,
    .ts-card-style-swap .ts-stone-card { flex-direction: column !important; }
    
    .ts-card-style-side_by_side .ts-card-bg,
    .ts-card-style-swap .ts-card-bg,
    .ts-card-style-side_by_side .ts-stone-card-content,
    .ts-card-style-swap .ts-stone-card-content { width: 100%; aspect-ratio: 1/1; }
}

