/**
 * Transtoyou Store Styles - Modern Shop Design
 *
 * @package Transtoyou
 */

/* Store Notices */
.tty-store-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--store-radius);
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.5s ease;
    grid-column: 1 / -1; /* Span full width in grid */
}

.tty-store-view-btn i {
  font-size: 20px;
}

.tty-store-notice i {
    font-size: 20px;
    flex-shrink: 0;
}

.tty-notice-info {
    background: rgba(0, 123, 255, 0.1);
    color: #0056b3;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.tty-notice-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Dark theme support */
[data-theme="dark"] .tty-notice-info {
    background: rgba(0, 123, 255, 0.15);
    color: #4d9fff;
    border-color: rgba(0, 123, 255, 0.3);
}

[data-theme="dark"] .tty-notice-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

/* Sorting loading state */
.tty-products-container.sorting {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.tty-products-container.sorting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--tty-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#tty-store-sidebar .tty-store-sort-dropdown i {
  margin-right: 5px;
}

#tty-store-sidebar .tty-store-toggle-switch.active i {
  color: #22b088;
}


.tty-filter-subcategory .tty-store-toggle-switch::before,
.tty-filter-subcategory .tty-store-toggle-switch::after {
    right: 16px;
}

/* Filter Option Spacing */
.tty-store-filter-option {
    margin-bottom: 15px;
}

.tty-store-filter-option:last-child {
    margin-bottom: 0;
}

/* Remove old checkbox styles */
.tty-store-filter-option input[type="checkbox"] {
    display: none !important;
}

/* Enhanced Price Slider to match search style */
.tty-store-price-filter {
    padding: 16px 0;
}

.tty-store-price-slider {
    position: relative;
    padding: 0 10px;
    margin-bottom: 20px;
    padding: 2px 13px;
}

.tty-store-slider-track {
    position: relative;
    height: 6px;
    background: var(--tty-border-light);
    border-radius: 3px;
}

.tty-store-slider-range {
    position: absolute;
    height: 100%;
    background: var(--tty-bg-linear-graniet);
    border-radius: 3px;
    transition: var(--store-transition);
}

.tty-store-slider-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--tty-primary);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: all 0.2s;
    box-shadow: var(--tty-shadow-md);
}

.tty-store-slider-thumb:hover {
    box-shadow: 0 0 0 8px rgba(0, 95, 95, 0.1);
    transform: translate(-50%, -50%) scale(1.1);
}

.tty-store-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.9);
}

.tty-store-slider-thumb.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.tty-store-price-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #515151;
  background: rgba(0, 95, 95, 0.08);
  padding: 6px 12px;
  border-radius: var(--store-radius);
  width: fit-content;
}

.tty-filter-search-input:focus {
    outline: none;
    border-color: var(--tty-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.08);
}

.tty-store-filter-search:focus-within::before {
    opacity: 0.8;
}

/* Disabled view switcher when sidebar is hidden */
body.sidebar-hidden .tty-store-view-controls .tty-view-switcher {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

body.sidebar-hidden .tty-store-view-controls .tty-view-switcher::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: not-allowed;
}

body.sidebar-hidden .tty-store-view-controls .tty-store-view-btn {
    cursor: not-allowed;
}

/* Visuele indicator dat alleen grid view beschikbaar is */
body.sidebar-hidden .tty-view-switcher::before {
    content: 'Grid only';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--tty-text-secondary);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

body.sidebar-hidden .tty-view-switcher:hover::before {
    opacity: 1;
}


/* ========================================
   Sidebar Toggle Button
   ======================================== */
.tty-sidebar-toggle-wrapper {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 769px) {

.tty-close-sidebar:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* ========================================
   Sidebar Hidden State
   ======================================== */
body.sidebar-hidden .tty-store-layout {
    grid-template-columns: 1fr;
    transition: grid-template-columns 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar animations */
body.sidebar-hidden .tty-store-sidebar {
    position: fixed;
    top: 0;
    left: -100%;  /* Start positie: volledig buiten scherm */
    width: var(--store-sidebar-width);
    max-width: 400px;
    height: 100vh;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    border-radius: 0;
    box-shadow: var(--tty-shadow-lg);
    background: var(--tty-bg-primary);
    /* Alleen transition op left voor smooth slide */
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.sidebar-hidden .tty-store-sidebar-inner {
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
}

body.sidebar-hidden .tty-store-sidebar.active .tty-store-sidebar-inner {
    opacity: 1;
}

/* Shadow effect tijdens slide */
body.sidebar-hidden .tty-store-sidebar {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-hidden .tty-store-sidebar.active {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    background: var(--tty-bg-primary);
}


body.sidebar-hidden .tty-store-sidebar.active {
    left: 0;
}
body:not(.sidebar-hidden) .tty-store-sidebar {
    position: relative;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
body.sidebar-hidden .tty-close-sidebar {
    display: flex !important;
}

body.sidebar-hidden .tty-store-filter-footer {
    display: block !important;
}


    .tty-sidebar-toggle-wrapper {
        display: block;
    }
    #tty-mobile-filter-toggle:hover {
        border-color: var(--tty-primary);
        transform: translateY(-2px) !important;
        box-shadow: var(--tty-shadow-md);
    }
}

.tty-sidebar-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: var(--store-radius);
    cursor: pointer;
    transition: var(--store-transition);
    font-size: 14px;
    color: var(--tty-text-primary);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.tty-sidebar-toggle-btn:hover {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-primary);
    transform: translateY(-2px);
    box-shadow: var(--tty-shadow-md);
}

.tty-sidebar-toggle-btn.active {
    background: var(--tty-primary);
    color: white;
    border-color: var(--tty-primary);
}

.tty-sidebar-toggle-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.tty-sidebar-toggle-btn.sidebar-hidden i {
    transform: rotate(180deg);
}

/* Overlay for desktop when sidebar is active */
.tty-store-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.tty-store-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Specifiek voor hidden sidebar state */
body.sidebar-hidden .tty-store-overlay {
    display: block;  /* Zorg dat het altijd bestaat */
}

/* Products grid adjustment */
body.sidebar-hidden .tty-products-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show mobile filter button when sidebar is hidden */
body.sidebar-hidden .tty-mobile-filter-btn {
    display: flex !important;
    animation: fadeInScale 0.4s ease-out 0.2s both;
}

/* Floating filter button animation */
body.sidebar-hidden .tty-mobile-filter-btn {
    animation: slideInRight 0.5s ease-out 0.3s both;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* List view adjustments */
body.sidebar-hidden.store-view-list .tty-products-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Smooth content reflow */
.tty-store-main {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-hidden .tty-store-main {
    max-width: 100%;
}

/* Dark theme support */
[data-theme="dark"] .tty-sidebar-toggle-btn {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-sidebar-toggle-btn:hover {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .tty-sidebar-toggle-btn.active {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}



/* Responsive grid adjustments */
@media (min-width: 1200px) {
    body.sidebar-hidden.store-view-grid .tty-products-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1400px) {
    body.sidebar-hidden.store-view-grid .tty-products-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Product card hover effects when sidebar is hidden */
body.sidebar-hidden .tty-store-product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body.sidebar-hidden .tty-store-product-card:hover {
    transform: translateY(-6px) scale(1.02);
}

/* Staggered animation for products when toggling */
body.sidebar-transitioning .tty-store-product-card {
    animation: productReflow 0.6s ease-out both;
}

body.sidebar-transitioning .tty-store-product-card:nth-child(1) { animation-delay: 0.05s; }
body.sidebar-transitioning .tty-store-product-card:nth-child(2) { animation-delay: 0.1s; }
body.sidebar-transitioning .tty-store-product-card:nth-child(3) { animation-delay: 0.15s; }
body.sidebar-transitioning .tty-store-product-card:nth-child(4) { animation-delay: 0.2s; }
body.sidebar-transitioning .tty-store-product-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes productReflow {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Button pulse effect */
.tty-sidebar-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.tty-sidebar-toggle-btn:active::before {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: all 0s;
}

/* Dark theme support */
[data-theme="dark"] .tty-store-toggle-switch {
    background: var(--tty-bg-secondary);
    border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-store-toggle-switch:hover {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .tty-store-toggle-switch.active {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .tty-store-toggle-switch .tty-category-product-count {
    background: rgba(0, 168, 150, 0.15);
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-store-toggle-switch.active .tty-category-product-count {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

[data-theme="dark"] .tty-filter-search-input {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-store-filter-options.tty-scrollable {
    background: rgba(0, 168, 150, 0.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tty-store-toggle-switch {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .tty-store-toggle-switch .tty-category-product-count {
        margin-right: 32px;
    }
    
    .tty-filter-subcategory .tty-store-toggle-switch {
        padding-left: 32px;
    }
}

/* ========================================
   Store Variables & Reset
   ======================================== */
.tty-store-wrapper {
    --store-sidebar-width: 340px;
    --store-header-height: 60px;
    --store-gap: 40px;
    --store-radius: 30px;
    --store-transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Store Header - Minimal Design
   ======================================== */
.tty-store-header-minimal {
    margin-bottom: var(--store-gap);
    margin-top: 40px;
}

.tty-store-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tty-store-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--store-header-height);
    gap: 20px;
    z-index: 9;
    position: sticky;
}

.tty-store-title-wrapper {
  display: flex;
  align-items: start;
  flex-direction: column;
}

.tty-store-title {
  margin: 0px 0px 5px 0px;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
  color: var(--tty-header-primary);
  margin-bottom: 0px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tty-store-result-count {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    margin-bottom: 20px;
    min-height: 20px;
}

.tty-skeleton-result-count {
    width: 180px;
    height: 17px;
    border-radius: 7px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: tty-skeleton-shimmer 1.6s ease-in-out infinite;
    margin-top:1px;
    
}

/* ========================================
   Store Controls
   ======================================== */
.tty-store-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Control row wrappers - inline on desktop */
.tty-controls-row-primary,
.tty-controls-row-secondary {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Product Name Search */
.tty-product-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    width: 36px;
    border-radius: 30px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
}

.tty-product-search.expanded {
    width: 240px;
    background: var(--tty-bg-primary);
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.08);
    cursor: default;
}

.tty-product-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--tty-primary);
    transition: color 0.25s ease;
}

.tty-product-search-toggle:hover {
    color: var(--tty-header-primary);
}

.tty-product-search-icon {
    width: 20px;
    height: 20px;
}

#tty-product-search .tty-product-search-input {
  height: 100%;
  padding: 0 !important;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--tty-text-primary);
  outline: none;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.35s ease;
  box-shadow: none;
}

.tty-product-search.expanded .tty-product-search-input {
    width: calc(100% - 72px);
    opacity: 1;
    padding: 0 4px;
}

.tty-product-search-input::placeholder {
    color: var(--tty-text-secondary);
    opacity: 0.6;
    font-size: 13px;
}

.tty-product-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin-right: 4px;
    background: none !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--tty-text-secondary);
    font-size: 11px;
    transition: all 0.2s ease;
    padding: 0;
}

.tty-product-search.expanded .tty-product-search-clear {
    display: flex;
}

.tty-product-search-clear:hover {
    background: rgba(0, 95, 95, 0.15);
    color: var(--tty-primary);
}

.tty-product-search.has-value .tty-product-search-toggle {
    color: var(--tty-secondary);
}

/* Country Toggle */
.tty-store-country-toggle {
    position: relative;
}

.tty-country-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: var(--store-radius);
    cursor: pointer;
    transition: var(--store-transition);
    font-size: 14px;
    color: var(--tty-text-primary);
    font-family: inherit;
    white-space: nowrap;
}

.tty-country-button:hover {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-primary);
}

.tty-country-button i,
.tty-sidebar-toggle-btn i {
    font-size: 16px;
    color: var(--tty-primary);
}

.tty-country-button .fa-chevron-down {
    font-size: 12px;
    color: var(--tty-text-secondary);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.tty-country-button .all-countries-indicator {
    font-size: 12px;
    color: var(--tty-secondary);
    font-weight: 600;
    margin-left: 4px;
}

.tty-country-button.active .fa-chevron-down {
    transform: rotate(180deg);
}

.tty-country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--tty-bg-primary);
    border: 1px solid var(--tty-border-light);
    border-radius: 15px;
    box-shadow: var(--tty-shadow-lg);
    padding: 12px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--store-transition);
}

.tty-country-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1;
}

.tty-show-all-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 8px;
    cursor: pointer;
}

.tty-show-all-toggle input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tty-show-all-toggle span {
  font-size: 15px;
  color: var(--tty-text-primary);
  line-height: 1.4;
}

.tty-change-country-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--tty-primary);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--store-transition);
    font-size: 14px;
    font-family: inherit;
}

.tty-change-country-btn:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-1px);
}

/* Mobile Filter Button */
.tty-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--tty-primary);
    color: white;
    border: none;
    border-radius: var(--store-radius);
    cursor: pointer;
    transition: var(--store-transition);
    font-size: 14px;
    position: relative;
    height: 36px;
}

.tty-mobile-filter-btn:hover {
    background: var(--tty-primary-dark);
}

.tty-filter-count {
    display: none;
    background: var(--tty-secondary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
}

.tty-store-filters .tty-category-product-count {
  background: var(--tty-secondary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 18px;
  margin-left: auto;
  min-width: 20px;
  padding: 5px;
}

.tty-filter-count:not(:empty) {
    display: inline-block;
}

/* View Controls */
.tty-store-view-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tty-store-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* View Switcher */
.tty-store-view-controls .tty-view-switcher {
    display: flex;
    background: var(--tty-bg-secondary);
    border-radius: var(--store-radius);
    padding: 4px;
    gap: 4px;
    border-radius: 12px;
}

.tty-store-view-controls .tty-store-view-btn svg {
  stroke-width: 2;
  text-align: center;
}


.tty-store-view-controls .tty-store-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--store-transition);
    color: var(--tty-text-secondary);
    width: 28px;
    height: 28px;
}

.tty-store-view-btn:hover {
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-primary);
}

.tty-store-view-btn.active {
    background: var(--tty-bg-primary);
    color: var(--tty-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tty-store-view-btn svg {
    stroke-width: 2;
}

[data-view="list"].tty-store-view-btn svg {
  margin-left: -4px;
}

/* Sort Selector */
.tty-sort-selector {
    position: relative;
}

.tty-sort-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: var(--store-radius);
    cursor: pointer;
    transition: var(--store-transition);
    font-size: 14px;
    color: var(--tty-text-primary);
    font-family: inherit;
}

.tty-sort-button:hover {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-primary);
}

.tty-sort-label {
    color: var(--tty-text-secondary);
    font-weight: 400;
}

.tty-sort-value {
    font-weight: 500;
}

.tty-sort-button i {
    font-size: 12px;
    color: var(--tty-text-secondary);
    transition: transform 0.3s ease;
}

.tty-sort-selector.active .tty-sort-button i {
    transform: rotate(180deg);
}

.tty-store-view-controls .tty-store-sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--tty-bg-primary);
    border: 1px solid var(--tty-border-light);
    border-radius: 15px;
    box-shadow: var(--tty-shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--store-transition);
    overflow: hidden;
}

.tty-store-sort-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tty-store-wrapper .tty-product-header-left {
  display: none;
}

.tty-sort-option.tty-sort-custom i {
  color: #9cc1c0;
  font-size: 12px;
}

.tty-sort-option {
    display: flex;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--store-transition);
    font-size: 14px;
    color: var(--tty-text-primary);
    font-family: inherit;
    gap: 5px;
    align-items: center;
}

.tty-sort-option:hover {
    background: var(--tty-bg-secondary);
}

.tty-sort-option.active {
    color: var(--tty-primary);
    font-weight: 500;
    background: rgba(0, 95, 95, 0.05);
}

/* ========================================
   Store Layout
   ======================================== */
.tty-store-layout {
    display: grid;
    grid-template-columns: var(--store-sidebar-width) 1fr;
    gap: var(--store-gap);
    align-items: start;
}

/* ========================================
   Store Sidebar - Filters
   ======================================== */
.tty-store-sidebar {
    overflow-y: auto;
    border-radius: 30px;
    padding: 30px 15px 0px 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--tty-primary) var(--tty-bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 95, 95, 0.1);
    background: var(--tty-bg-primary);
    margin-bottom: 80px;
}

.tty-store-sidebar::-webkit-scrollbar {
    width: 6px;
}

.tty-store-sidebar::-webkit-scrollbar-track {
    background: var(--tty-bg-secondary);
    border-radius: 3px;
}

.tty-store-sidebar::-webkit-scrollbar-thumb {
    background: var(--tty-primary);
    border-radius: 3px;
}

.tty-store-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tty-store-sidebar-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--tty-header-primary);
    margin-bottom: 5px;
}

.tty-clear-all-filters {
    font-size: 13px;
    color: #BF7761;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--store-transition);
    font-family: inherit;
}

.tty-clear-all-filters:hover {
    background: rgba(0, 95, 95, 0.1);
}

.tty-close-sidebar {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--tty-bg-secondary, #f9f9f9);;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--store-transition);
    color: var(--tty-text-secondary);
}

/* Active Filters */
.tty-active-filters {
    margin-bottom: 15px;
}

.tty-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tty-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--tty-primary);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--store-transition);
}

.tty-filter-tag:hover {
    background: var(--tty-primary-dark);
}

.tty-remove-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--store-transition);
    color: white;
    font-size: 10px;
    padding: 0;
}

.tty-remove-filter:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Filter Sections */
.tty-store-filter-section {
    margin-bottom: 24px;
}

.tty-store-filter-section:last-child {
    margin-bottom: 0;
}

.tty-store-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: inherit;
}

.tty-store-filter-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-header-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tty-store-filter-header i {
    font-size: 12px;
    color: var(--tty-text-secondary);
    transition: transform 0.3s ease;
}

.tty-store-filter-header[aria-expanded="false"] i {
    transform: rotate(180deg);
}

.tty-store-filter-content {
    animation: slideDown 0.3s ease;
    margin-bottom: 40px;
}

[data-filter="brands"] .tty-store-filter-content {
  border: none;
  margin-bottom: 0px;
  padding-bottom: 5px;
}

.tty-store-filter-content[style*="display: none"] {
    animation: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Search */
.tty-store-filter-search {
    margin-bottom: 12px;
    position: relative;
}

.tty-store-filter-search::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005f5f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.tty-store-filter-content .tty-filter-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px !important;
  font-size: 13px;
  font-family: inherit;
  color: var(--tty-text-primary);
  background: rgba(0, 95, 95, 0.04);
  border: 2px solid rgba(0, 95, 95, 0.12);
  border-radius: 30px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.tty-filter-search-input::placeholder {
    color: var(--tty-text-secondary);
    opacity: 0.6;
    font-size: 13px;
}

.tty-filter-search-input:hover {
    border-color: rgba(0, 95, 95, 0.25);
    background: rgba(0, 95, 95, 0.06);
}

/* Filter Options */
.tty-store-filter-options {
    display: flex;
    flex-direction: column;
}

#tty-store-sidebar .fas.fa-chevron-down {
  transition: transform 0.3s ease;
  color: #005f5f !important;
  cursor: pointer;
  font-size: 14px;
  width: 30px;
  border: none !important;
  height: 30px;
  text-align: center !important;
  text-transform: none;
  padding: 9px !important;
}


.tty-store-filter-options.tty-scrollable {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0, 95, 95, 0.05);
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--tty-primary) var(--tty-bg-secondary);
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

.tty-filter-no-results {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--tty-text-secondary);
    opacity: 0.7;
    font-style: italic;
}

.tty-store-filter-options.tty-scrollable::-webkit-scrollbar {
    width: 4px;
}

.tty-store-filter-options.tty-scrollable::-webkit-scrollbar-track {
    background: var(--tty-bg-secondary);
    border-radius: 2px;
}

.tty-store-filter-options.tty-scrollable::-webkit-scrollbar-thumb {
    background: var(--tty-primary);
    border-radius: 2px;
}

.tty-store-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, border-color, background-color, box-shadow;
}


.tty-store-filter-option:hover .tty-filter-label {
    color: var(--tty-primary);
}

.tty-store-filter-option input[type="checkbox"] {
    display: none;
}

.tty-filter-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid var(--tty-border-medium);
    border-radius: 4px;
    transition: var(--store-transition);
    flex-shrink: 0;
}

.tty-store-filter-option input:checked + .tty-filter-checkbox {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

.tty-store-filter-option input:checked + .tty-filter-checkbox::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 4px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tty-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tty-text-primary);
    flex: 1;
}

.tty-filter-label i {
    font-size: 16px;
    color: var(--tty-primary);
}


.tty-filter-subcategory {
    padding-left: 24px;
}

/* Price Slider */
.tty-store-price-filter {
    padding: 8px 0;
}

.tty-store-filter-content .tty-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tty-header-primary);
    margin-top: 15px;
}

.tty-store-filter-section .tty-price-separator {
    color: var(--tty-text-secondary);
}


.tty-store-filter-section .tty-price-slider {
  position: relative;
  height: 6px;
  background: var(--tty-search-border);
  border-radius: 3px;
  margin: 0 10px;
  padding: 0px;
}

.tty-store-filter-section .tty-price-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.tty-price-range {
  transition: var(--store-transition);
  position: absolute;
  height: 100%;
  background: var(--tty-bg-linear-graniet);
  border-radius: 3px;
  left: 0;
  right: 0;
}

.tty-price-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--tty-bg-primary);
    border: 3px solid var(--tty-primary);
    border-radius: 50%;
    cursor: grab;
    transition: var(--store-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tty-price-handle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%) scale(1.1);
}

.tty-price-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.tty-price-handle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.2);
}

/* Filter Footer (Mobile) */
.tty-store-filter-footer {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tty-border-light);
}

.tty-apply-filters-btn {
    width: 100%;
    padding: 12px;
    background: var(--tty-primary);
    color: white;
    border: none;
    border-radius: var(--store-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--store-transition);
    font-family: inherit;
}

.tty-apply-filters-btn:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.3);
}

/* ========================================
   Products Grid
   ======================================== */
.tty-store-main {
    min-height: 400px;
    margin-bottom: 80px;
}

.tty-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Grid View (default) */
.store-view-grid .tty-products-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Dosage info: hidden in grid view, visible in list view */
.store-view-grid .tty-store-product-dosage-info {
    display: none;
}

.store-view-list .tty-store-product-dosage-info {
    display: block;
}

/* Dosage info layout */
.tty-store-product-dosage-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0;
}

.tty-store-dosage-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.tty-store-dosage-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tty-store-dosage-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 99px;
    white-space: nowrap;
}

/* Dosage info: hidden in grid view, visible in list view */
.store-view-grid .tty-store-container .tty-store-product-dosage-info {
    display: none;
}

.store-view-list .tty-store-container .tty-store-product-dosage-info {
    display: flex;
}

.store-view-list .tty-store-container  .tty-store-product-card {
  box-shadow: var(--tty-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
}

.store-view-list .tty-store-container .tty-store-product-image-wrapper {
  border-radius: 30px 0px 0px 30px;
}

/* List View */
.store-view-list .tty-store-container  .tty-products-container {
    grid-template-columns: 1fr;
}

.store-view-list .tty-store-container .tty-product-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.store-view-list .tty-store-container .tty-product-image {
    width: 200px;
    flex-shrink: 0;
}

.store-view-list .tty-store-container .tty-product-details {
    flex: 1;
}

.store-view-list .tty-store-container .tty-product-excerpt {
    display: block;
}

/* Loading State */
/* ========================================
   Skeleton Loading
   ======================================== */
@keyframes tty-skeleton-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.tty-store-container .tty-skeleton-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tty-store-container .tty-skeleton-image {
    width: 100%;
    padding-top: 100%;
    border-radius: 30px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: tty-skeleton-shimmer 1.6s ease infinite;
}

.tty-store-container .tty-skeleton-indicators {
  display: flex;
  gap: 6px;
  margin-top: -68px;
  margin-left: 16px;
  position: relative;
  z-index: 2;
  margin-bottom: 17px;
}

.tty-store-container .tty-skeleton-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 37%, #e8e8e8 63%);
    background-size: 800px 100%;
    animation: tty-skeleton-shimmer 1.6s ease infinite;
}

.tty-store-container .tty-skeleton-info {
    padding: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-store-container .tty-skeleton-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: tty-skeleton-shimmer 1.6s ease infinite;
}

.tty-store-container .tty-skeleton-title {
    height: 21.6px;
    width: 80%;
}

.tty-store-container .tty-skeleton-title-short {
    height: 18px;
    width: 55%;
    display: none;
}

.tty-store-container .tty-skeleton-cats {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.tty-store-container .tty-skeleton-pill {
    height: 24px;
    width: 80px;
    border-radius: 30px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: tty-skeleton-shimmer 1.6s ease infinite;
}

.tty-store-container .tty-skeleton-pill-short {
    width: 60px;
}

.tty-store-container .tty-skeleton-price {
    height: 16px;
    width: 120px;
    margin-top: 4px;
    margin-bottom: 6px;
}

/* Desktop List View Skeleton */
.store-view-list .tty-skeleton-card {
    flex-direction: row;
    min-height: 220px;
    height: auto;
    border-radius: var(--store-radius, 30px);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.store-view-list .tty-skeleton-image {
    width: 220px;
    min-width: 220px;
    padding-top: 0;
    height: auto;
    min-height: 220px;
    border-radius: 30px 0 0 30px;
    align-self: stretch;
}

.store-view-list .tty-skeleton-indicators {
    display: flex;
    position: static;
    margin: 0;
}

.store-view-list .tty-skeleton-dot {
    width: 34px;
    height: 34px;
}

.store-view-list .tty-skeleton-info {
    flex: 1;
    padding: 24px;
    justify-content: center;
    gap: 10px;
}

.store-view-list .tty-skeleton-title {
    height: 22px;
    width: 60%;
}

.store-view-list .tty-skeleton-title-short {
    display: block;
    height: 18px;
    width: 35%;
}

.store-view-list .tty-skeleton-cats {
    display: flex;
    margin-top: 4px;
}

.store-view-list .tty-skeleton-price {
    height: 20px;
    width: 100px;
    margin-top: 4px;
}

/* Stagger shimmer per card */
.tty-skeleton-card:nth-child(2n) .tty-skeleton-image,
.tty-skeleton-card:nth-child(2n) .tty-skeleton-line,
.tty-skeleton-card:nth-child(2n) .tty-skeleton-pill,
.tty-skeleton-card:nth-child(2n) .tty-skeleton-dot {
    animation-delay: 0.15s;
}

.tty-skeleton-card:nth-child(3n) .tty-skeleton-image,
.tty-skeleton-card:nth-child(3n) .tty-skeleton-line,
.tty-skeleton-card:nth-child(3n) .tty-skeleton-pill,
.tty-skeleton-card:nth-child(3n) .tty-skeleton-dot {
    animation-delay: 0.3s;
}

.tty-skeleton-card:nth-child(4n) .tty-skeleton-image,
.tty-skeleton-card:nth-child(4n) .tty-skeleton-line,
.tty-skeleton-card:nth-child(4n) .tty-skeleton-pill,
.tty-skeleton-card:nth-child(4n) .tty-skeleton-dot {
    animation-delay: 0.45s;
}

/* Loading state — no more overlay spinner */
.tty-products-container.loading {
    pointer-events: none;
}

/* No Products Found */
.tty-no-products-found {
    text-align: center;
    padding: 80px 20px;
    color: var(--tty-text-secondary);
}

.tty-no-products-found i {
    font-size: 48px;
    color: var(--tty-border-medium);
    margin-bottom: 20px;
}

.tty-no-products-found h3 {
    font-size: 24px;
    color: var(--tty-header-primary);
    margin-bottom: 10px;
    margin-top: -131px;

}

.tty-no-products-found p {
    font-size: 16px;
}

/* Load More Button */
.tty-load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.tty-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--tty-bg-primary);
    color: var(--tty-primary);
    border: 2px solid var(--tty-primary);
    border-radius: var(--store-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--store-transition);
    font-family: inherit;
}

.tty-load-more-btn:hover {
    background: var(--tty-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.3);
}

.tty-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tty-load-more-spinner {
    display: none;
}

.tty-load-more-btn.loading .tty-load-more-text {
    display: none;
}

.tty-load-more-btn.loading .tty-load-more-spinner {
    display: inline-flex;
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 1024px) {
    .tty-store-wrapper {
        --store-sidebar-width: 240px;
    }
    
    .tty-products-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .tty-store-header-minimal {
        position: sticky;
        top: 0;
        background: white;
        z-index: 30;
        margin: 0px;
    }
    
    .tty-store-header-row {
        flex-wrap: wrap;
        height: auto;
        padding: 14px 0 12px 0;
        gap: 8px;
        transition: padding 0.3s ease;
    }
    
    body.scrolling-down .tty-store-header-row {
        padding-top: 8px;
        gap: 8px 8px;
    }
    
    .tty-store-title-wrapper {
        width: 100%;
        max-height: 80px;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
        opacity: 1;
    }
    
    /* Hide title when scrolling down on mobile */
    body.scrolling-down .tty-store-title-wrapper {
        max-height: 0;
        opacity: 0;
        margin: 0;
    }
    
    /* Mobile controls: 2-row layout via wrappers */
    .tty-store-controls {
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }
    
    /* Row 1: Country toggle + Filter button — full width */
    .tty-controls-row-primary {
        width: 100%;
        gap: 8px;
    }
    
    .tty-store-country-toggle {
        flex: 1;
        min-width: 0;
    }
    
    .tty-store-country-toggle .tty-country-button {
        width: 100%;
    }
    
    .tty-mobile-filter-btn {
        display: flex;
        flex-shrink: 0;
    }
    
    /* Row 2: Search + View/Sort — full width */
    .tty-controls-row-secondary {
        width: 100%;
        gap: 8px;
    }
    
    .tty-product-search {
        flex-shrink: 0;
    }
    
    .tty-store-view-controls {
        flex: 1;
        justify-content: flex-end;
    }
    
    /* Expanded search takes full row 2, hides view/sort */
    .tty-product-search.expanded {
        flex: 1;
        width: auto;
    }
    
    .tty-product-search.expanded ~ .tty-store-view-controls {
        display: none;
    }
    
    .tty-store-layout {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Sidebar */
    .tty-store-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        z-index: 9999;
        border-radius: 0;
        transition: left 0.3s ease;
        animation: none;
        transition: none;
        padding: 0;
    }
    
    .tty-store-sidebar.active {
        left: 0;
        animation: none;
        transition: none;
    }
    
    /* Sidebar inner: scroll container */
    .tty-store-sidebar-inner {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
    }
    
    .tty-store-sidebar-header h3 {
        font-size: 26px;
        margin-top: -6px;
    }
    
    /* Sidebar header: sticky top */
    .tty-store-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--tty-bg-primary, #fff);
        padding: 13px 20px 10px 20px;
        margin: 0 -20px;
    }
    
    .tty-close-sidebar {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,95,95,.08);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: .15s;
        font-size: 20px;
        color: var(--tty-primary);
        transition: none;
        transform: none;
    }
    
    /* Filter footer: sticky bottom */
    .tty-store-filter-footer {
        display: block;
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: var(--tty-bg-primary, #fff);
        margin: 0 -20px;
        padding: 12px 20px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 20px));
        border-top: 1px solid var(--tty-border-light, #eee);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    }
    
    /* Mobile Overlay */
    .tty-store-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: var(--store-transition);
    }
    
    .tty-store-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Grid: fixed 2-column, tight gap */
    .tty-products-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* List: single column with tighter gap */
    .store-view-list .tty-products-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* ========================================
       Skeleton: Grid Overlay Style
       ======================================== */
    .store-view-grid .tty-skeleton-card {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .store-view-grid .tty-skeleton-image {
        border-radius: 16px;
    }
    
    .store-view-grid .tty-skeleton-indicators {
        position: absolute;
        bottom: 38px;
        left: 10px;
        margin: 0;
        z-index: 2;
    }
    
    .store-view-grid .tty-skeleton-dot {
        width: 36px;
        height: 36px;
        background: linear-gradient(90deg, rgba(255,255,255,0.12) 25%, rgba(255,255,255,0.22) 37%, rgba(255,255,255,0.12) 63%);
        background-size: 800px 100%;
        margin-top: -74px;
    }
    
    .store-view-grid .tty-skeleton-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 10px 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 100%);
    }
    
    .store-view-grid .tty-skeleton-title {
        height: 25px;
        width: 75%;
        background: linear-gradient(90deg, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.25) 37%, rgba(255,255,255,0.15) 63%);
        background-size: 800px 100%;
        animation: tty-skeleton-shimmer 1.6s ease infinite;
    }
    
    .store-view-grid .tty-skeleton-cats {
        display: none;
    }
    
    .store-view-grid .tty-skeleton-price {
        height: 12px;
        width: 55%;
        margin-top: 2px;
        background: linear-gradient(90deg, rgba(255,255,255,0.12) 25%, rgba(255,255,255,0.22) 37%, rgba(255,255,255,0.12) 63%);
        background-size: 800px 100%;
        animation: tty-skeleton-shimmer 1.6s ease infinite;
    }
    
    /* ========================================
       Skeleton: List Horizontal Style
       ======================================== */
    .store-view-list .tty-skeleton-card {
        flex-direction: row;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.06);
        height: 115px;
        min-height: 115px;
    }
    
    .store-view-list .tty-skeleton-image {
        width: 115px;
        min-width: 115px;
        padding-top: 0;
        height: 100%;
        border-radius: 14px 0 0 14px;
        min-height: 115px;
    }
    
    .store-view-list .tty-skeleton-indicators {
        display: none;
    }
    
    .store-view-list .tty-skeleton-info {
        flex: 1;
        padding: 14px 12px;
        justify-content: center;
        gap: 6px;
    }
    
    .store-view-list .tty-skeleton-cats {
        display: none;
    }
    
    .store-view-list .tty-skeleton-title {
        height: 14px;
        width: 80%;
    }
    
    .store-view-list .tty-skeleton-price {
        height: 12px;
        width: 45%;
    }
}

/* ========================================
   Dark Theme Support
   ======================================== */
[data-theme="dark"] .tty-store-sidebar {
    background: var(--tty-bg-secondary);
    border-color: var(--tty-border-medium);
}

@media (max-width: 768px) {
    [data-theme="dark"] .tty-store-sidebar-header {
        background: var(--tty-bg-secondary);
        border-bottom-color: var(--tty-border-medium);
    }
    
    [data-theme="dark"] .tty-store-filter-footer {
        background: var(--tty-bg-secondary);
        border-top-color: var(--tty-border-medium);
    }
}

[data-theme="dark"] .tty-store-action-btn svg {
  fill: white;
}


[data-theme="dark"] .tty-country-button,
[data-theme="dark"] .tty-sort-button {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-country-button:hover,
[data-theme="dark"] .tty-sort-button:hover {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .tty-view-switcher {
    background: var(--tty-bg-tertiary);
}

[data-theme="dark"] .tty-store-view-btn.active {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-filter-search-input {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-filter-search-input:focus {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-price-track {
    background: var(--tty-bg-tertiary);
}

[data-theme="dark"] .tty-price-handle {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-load-more-btn {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-load-more-btn:hover {
    background: var(--tty-primary);
}