:root {
    --primary-color: #ff3366;
    --primary-gradient: linear-gradient(45deg, #ff3366, #ff6688);
    --accent-color: #cc0000;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --light-color: #ffffff;
    --bg-gray: #f9f9f9;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(255, 51, 102, 0.15);
    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

.store-layout-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.store-hero-banner {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.store-hero-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.store-hero-info,
.store-hero-visual {
    flex: 1;
    width: auto;
    display: block;
}

.brand-badge-group {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 51, 102, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.brand-mini-logo {
    height: 24px;
    width: auto;
    margin-right: 8px;
}

.brand-tagline-text {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.store-main-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.brand-gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-sub-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-contact-strip {
    border-top: 1px dashed #e0e0e0;
    padding-top: 20px;
}

.contact-strip-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-strip-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-strip-buttons .strip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    min-height: 44px;
}

.theme-primary-btn {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

.theme-dark-btn {
    background: #111111;
}

.contact-strip-buttons .strip-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hero-cover-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
}

.catalog-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.panel-header-title {
    flex: 1;
    min-width: 250px;
}

.panel-badge {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.panel-heading {
    font-size: 26px;
    font-weight: 600;
}

.catalog-control-panel .tef-hero-search-container {
    flex: 1.5;
    min-width: 280px;
    text-align: right;
}

.catalog-filter-bar {
    background: var(--light-color);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tab-scroller-wrapper {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
}

.tab-scroller-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-pills-list {
    display: flex;
    list-style: none;
    gap: 8px;
    white-space: nowrap;
}

.tab-pills-list li {
    display: block;
    margin: 0;
}

.tab-link-pill {
    display: block;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    background: var(--bg-gray);
    transition: all 0.3s;
    font-weight: 500;
    border: 1px solid transparent;
}

.tab-link-pill:hover {
    background: #fff0f3;
    color: var(--primary-color);
}

.tab-link-pill.is-active {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
}

.catalog-item-counter {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.counter-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.catalog-body-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.catalog-sidebar {
    display: block;
    width: auto;
    padding-right: 0;
    vertical-align: top;
}

.catalog-main-content {
    display: block;
    vertical-align: top;
}

.sidebar-widget-box {
    background: var(--light-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-gray);
    color: var(--text-color);
    letter-spacing: 0.3px;
}

.sort-options-group .sort-link-item {
    display: block;
    padding: 12px 14px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.sort-options-group .sort-link-item:hover {
    background: #fff0f3;
    color: var(--primary-color);
}

.sort-options-group .sort-link-item.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.15);
}

.price-input-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.price-input-inputs input {
    flex: 1;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fdfdfd;
    min-height: 40px;
}

.price-input-inputs input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.range-dash {
    color: var(--text-muted);
    font-size: 14px;
}

.sidebar-action-submit-btn {
    width: 100%;
    padding: 12px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-action-submit-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
}

.brand-filter-links .brand-link-pill {
    display: block;
    padding: 12px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.brand-filter-links .brand-link-pill:hover {
    color: var(--primary-color);
    background: #fff0f3;
}

.brand-filter-links .brand-link-pill.chosen {
    color: var(--primary-color);
    background: #fff0f3;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding-left: 11px;
}

.current-view-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.footer-cta-banner {
    margin-top: 60px;
}

.cta-banner-card {
    background: linear-gradient(135deg, #111111, #2d3436);
    border-radius: var(--radius-lg);
    padding: 60px 24px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-soft);
}

.cta-title {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-subtitle {
    font-size: 15px;
    opacity: 0.75;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-action-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cta-action-group .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0;
    font-size: 15px;
    transition: all 0.3s;
    min-height: 48px;
}

.line-btn-theme {
    background-color: var(--light-color);
    color: var(--text-color);
}

.fb-btn-theme {
    background: var(--primary-gradient);
    color: white;
}

.cta-action-group .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.mobile-responsive-control-bar {
    display: none;
    width: 100%;
    margin: 15px 0;
    padding: 0;
    box-sizing: border-box;
}

.mobile-action-trigger-btn {
    width: 100%;
    height: 48px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
    transition: all 0.2s ease;
}

.mobile-action-trigger-btn:active {
    background: var(--accent-color);
    transform: scale(0.98);
}

.mobile-sidebar-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-drawer-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #ffffff;
    color: var(--text-color);
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10000;
}

.mobile-sidebar-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-drawer-overlay.is-open .mobile-sidebar-drawer-content {
    right: 0;
}

.mobile-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
}

.drawer-header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.mobile-drawer-close-btn:hover {
    color: var(--primary-color);
}

.mobile-drawer-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ffffff;
}

.mobile-drawer-widget-box {
    margin-bottom: 25px;
}

.mobile-drawer-widget-box .widget-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 8px;
}

.mobile-category-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-pill-link {
    display: block;
    padding: 12px 15px;
    background: var(--bg-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.mobile-pill-link.is-active {
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.15);
}

.mobile-drawer-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fdfdfd;
}

.mobile-drawer-reset-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #ffffff;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.mobile-drawer-reset-btn:hover {
    background: var(--bg-gray);
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .catalog-body-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-sidebar {
        display: none !important;
    }

    .store-layout-wrapper {
        padding: 24px 16px;
    }

    .store-hero-banner {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .store-hero-grid {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .store-hero-info,
    .store-hero-visual {
        width: 100%;
    }

    .store-main-title {
        font-size: 28px;
    }

    .mobile-responsive-control-bar {
        display: block;
    }

    .mobile-sidebar-drawer-content {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .catalog-filter-bar {display: none;}
    .catalog-control-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .catalog-control-panel .tef-hero-search-container {
        width: 100%;
        text-align: left;
    }

    .tef-hero-search-container input {
        width: 100%;
    }

    .catalog-filter-bar {
        padding: 12px 16px;
        gap: 12px;
    }

    .catalog-item-counter {
        display: none;
    }

    .contact-strip-buttons {
        flex-direction: column;
    }

    .contact-strip-buttons .strip-btn {
        width: 100%;
        margin-right: 0;
    }

    .cta-action-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .cta-action-group .cta-button {
        width: 100%;
    }

    .cta-banner-card {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 22px;
    }
}


/* --- 7.3 Search Box --- */

.tef-hero-search-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.tef-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(255, 51, 102, 0.1);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    z-index: 100;
}

.tef-search-box:focus-within {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.tef-search-box input {
  font-family: 'Noto Sans Thai', sans-serif;
    border: none;
    outline: none;
    padding: 12px 15px;
    width: 100%;
    font-size: 1rem;
}

.btn-search-main {
    font-family: 'Noto Sans Thai', sans-serif;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
}

.btn-group-hero {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary-lg,
.btn-outline-lg {
    padding: 16px 35px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-primary-lg {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.3);
}

.btn-outline-lg {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* --- 7.5 Live Search Results --- */

#search-results-hero {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255, 51, 102, 0.05);
    text-align: left;
    width: 100%;
    z-index: 99999 !important;
}

.hero-search-results {
    position: absolute;
    top: 120%;
    right: 0;
    width: 350px;
    background: var(--fh-white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #eee;
    z-index: 99999 !important;
}

#search-results-hero.hero-search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results-hero.hero-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#search-results-hero.hero-search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.hero-live-search-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #fcfcfc;
    transition: all 0.2s ease;
    z-index: 99999 !important;
}

.hero-live-search-item:last-child {
    border-bottom: none;
}

.hero-live-search-item:hover {
    background-color: #fff0f3;
}

.hero-live-item-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
}

.hero-live-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-live-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #2d2d2d;
}

.hero-live-item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-live-no-result {
    padding: 20px;
    color: #888;
    text-align: center;
    font-size: 0.95rem;
}

.hero-live-search-view-more {
    display: block;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-top: 1px solid #eee;
}

.hero-live-search-view-more:hover {
    background: var(--primary-gradient);
    color: white;
}

.hero-live-search-view-more i {
    margin-left: 8px;
    font-size: 0.8rem;
}