/* ===================================================================
   BASIC RESET
=================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    background: #fff;
    color: #111;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Global Container */
.container {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
}
nav > ul {
    margin: 0;
    padding: 0 1rem;   /* horizontal padding */
    list-style: none;   /* remove bullets */
    display: flex;      /* horizontal layout */
    flex-wrap: wrap;    /* wrap items on small screens */
    align-items: center; /* vertically align items */
    gap: 1rem;          /* spacing between items */
}

/* ===================================================================
   HEADER START
=================================================================== */
.gs-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
    transition: 0.3s ease;
}

/* Sticky Header */
.gs-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from { top: -80px; }
    to { top: 0; }
}

/* TOP BAR */
.gs-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    gap: 20px;
}

/* Logo */
.gs-logo img,
.gs-logo-img {
    max-height: 55px;
    width: auto;
    height: auto;
    display: block;
}

/* SEARCH BAR */
.gs-search-box form {
    display: flex;
    width: 600px;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
}
.gs-search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
}
.gs-search-box button {
    border: none;
    background: none;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* HEADER ICONS */
.gs-header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}
.gs-icon {
    position: relative;
    font-size: 14px;
    text-align: center;
    color: #222;
}
.gs-icon span { display: block; }

.gs-cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #b40000;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}
.gs-wishlist-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #b40000;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}
.gs-compare-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #b40000;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ===================================================================
   NAVIGATION AREA
=================================================================== */
.gs-nav-area {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.gs-nav-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 12px 30px;
    position: relative;
}

/* BROWSE CATEGORIES BUTTON */
.gs-browse-categories {
    background: #900d0d;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}

/* CATEGORY DROPDOWN */
.gs-category-dropdown {
    position: absolute;
    top: 83%;
    left: 30px;
    width: 195px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
}

.gs-category-dropdown.open {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.gs-category-dropdown ul li {
    padding: 10px 20px;
}
.gs-category-dropdown ul li a {
    font-weight: 500;
    color: #333;
    display: block;
}
.gs-category-dropdown ul li:hover {
    background: #f7f7f7;
}

/* MAIN MENU */
/* Force menu horizontal */
 nav.gs-menu > ul > li {
    display: contents;
    flex-direction: row;
    align-items: center;
    gap: 35px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.gs-menu > ul > li a {
    padding: 12px;
    color: #111;
    font-weight: 600;
    text-decoration: none;
}


nav.gs-menu > ul > li a:hover {
    border-bottom: 2px solid #000;
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.gst-hero {
    padding: 3rem 0;
}
.hero-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.hero-content { flex: 1; }
.hero-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: #0f2043;
    color: #fff;
    border-radius: 6px;
}

/* ===================================================================
   SWIPER & CUSTOM SLIDERS
=================================================================== */
.swiper { padding: 1rem 0; }
.swiper-slide {
    display: flex;
    justify-content: center;
}
.slide-card {
    border: 1px solid #eee;
    padding: 1rem;
    width: 220px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
}

.gst-carousel-fade .fade-slide {
    position: relative;
}
.fade-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}
.fade-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
}

/* ===================================================================
   TESTIMONIALS
=================================================================== */
.gst-testimonials { padding: 2rem 0; }
.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.testimonial {
    width: calc(33% - 0.66rem);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 992px) {
    .gs-nav-inner { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .hero-inner { flex-direction: column; }
    .testimonial { width: 100%; }

    /* Mobile menu hidden (until you add mobile menu later) */
    nav.gs-menu  { display: none; }

    /* Search full width */
    .gs-search-box form {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gs-header-top { padding: 10px 15px; }
    .gs-nav-inner { padding: 10px 15px; }
    .gs-browse-categories { font-size: 14px; }
}
.gs-filter-drawer {
    position: fixed;
    top: 0;
    right: -380px; /* hidden by default */
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    z-index: 999999;
    padding: 20px 24px;
    transition: right .32s ease;
    overflow-y: auto;
    border-left: 1px solid #eee;
}

/* Drawer Active */
.gs-filter-drawer.active {
    right: 0;
}

/* Overlay */
.gs-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999998;
    display: none;
}
.gs-filter-overlay.active {
    display: block;
}

/* Drawer Header */
.gs-filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e6e6;
}
.gs-filter-drawer-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
.gs-filter-close {
    font-size: 24px;
    cursor: pointer;
    color: #555;
    transition: .25s;
}
.gs-filter-close:hover {
    color: #000;
    transform: rotate(90deg);
}

/* ===================================================================
   FILTER FORM ELEMENTS
=================================================================== */
.gs-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Fields */
.gs-filter-form input[type="number"],
.gs-filter-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.25s;
    background: #fafafa;
}

.gs-filter-form input:focus,
.gs-filter-form select:focus {
    border-color: #111;
    background: #fff;
}

/* Price Row */
.gs-filter-row {
    display: flex;
    gap: 12px;
}
.gs-filter-row input {
    flex: 1;
}

/* ===================================================================
   FILTER GROUPS (Category, Color, Size, Status)
=================================================================== */
.gs-filter-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
    width: -webkit-fill-available;
}

.gs-filter-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

/* Checkboxes */
.gs-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin: 6px 0;
    cursor: pointer;
}

.gs-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #111; /* Modern checkbox styling */
}

/* ===================================================================
   APPLY FILTER BUTTON
=================================================================== */
.gs-filter-btn {
    width: 100%;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.gs-filter-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ===================================================================
   OPEN FILTER BUTTON
=================================================================== */
.gs-open-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    margin: 10px 0;
    transition: .25s;
}

.gs-open-filter-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Optional icon styles */
.gs-open-filter-btn .dashicons {
    font-size: 18px;
}

/* ===================================================================
   RESPONSIVE DESIGN
=================================================================== */
@media(max-width: 480px) {
    .gs-filter-drawer {
        width: 100%;
        right: -100%;
    }
}
.gs-ajax-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gs-search-popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gs-search-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.gs-search-item a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #333;
}

.gs-search-title {
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
}

.gs-search-price {
    font-size: 13px;
    color: #f36;
}

.gs-no-result {
    padding: 10px;
    text-align: center;
}

