/* Core Reset & Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #E31C25;
    /* Energetic Red */
    --text-color: #111111;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Setup Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    height: 80px;
}

.nav-wrapper nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    /* Add some spacing so it's not glued to the icons if needed, though icons have margin */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    /* Optional rounded corners */
    padding-top: 5px;
    /* Minimal padding */
    left: 50%;
    transform: translateX(-50%);
    /* Center dropdown below text */
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #e74c3c;
    /* Highlight parent on hover */
}

.header-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    align-items: center;
}

.icon-btn {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #000;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    /* Force white text on video */
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    /* Lighter white for subtext */
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-btn-group {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
/* Footer - Premium Dark Style */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 40px;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #999;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social h4 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--accent-color);
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.company-details p {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.cs-center {
    text-align: right;
}

.cs-center h3 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-bottom-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-center {
        text-align: left;
        margin-top: 20px;
    }

    .footer-social h4 {
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
    }
}

/* Shop Grid */
.shop-header {
    margin-top: 100px;
    margin-bottom: 2rem;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #eee;
}

.product-info {
    padding: 1.5rem;
}

.product-tag {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Forms (Admin & Login) */
.form-container {
    max-width: 500px;
    margin: 120px auto 60px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.btn-danger {
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-badge {
    background: #eee;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
}

.board-actions {
    margin-bottom: 2rem;
}

/* Footer Section Grid */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column ul.split-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

/* Admin Dashboard Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 2rem 0;
    flex-shrink: 0;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-menu li {
    margin-bottom: 0.5rem;
}

.admin-sidebar-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar-menu a:hover,
.admin-sidebar-menu a.active {
    background-color: #e9ecef;
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.admin-sidebar-header {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background-color: #fff;
    overflow-y: auto;
}

/* Admin Product List Table */
.product-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.product-list-table th,
.product-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-list-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.product-list-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.badge-stock {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-stock.in-stock {
    background-color: #e6fcf5;
    color: #0ca678;
}

.footer-bottom {
    width: 100%;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Kakao CS Button */
.kakao-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #FEE500;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.2s;
}

.kakao-chat-btn:hover {
    transform: scale(1.1);
}

.kakao-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Product Card New Styles */
.image-wrapper {
    position: relative;
    overflow: hidden;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E31C25;
    color: white;
    padding: 0.3rem 0.6rem;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 2;
}

.product-brand {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: block;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
}

.product-price {
    color: #E31C25;
    /* Sales color */
    font-weight: 800;
    font-size: 1.1rem;
}

/* Product Detail Page */
.breadcrumbs {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.product-detail-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

@media(max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 2rem;
    }
}

.detail-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.brand-tag {
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-price-wrapper {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.detail-original {
    text-decoration: line-through;
    color: #aaa;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.detail-price {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 800;
}

.detail-options {
    margin-bottom: 2rem;
}

.detail-options select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-actions button {
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
}

.btn-secondary {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #333;
    background: #f9f9f9;
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.product-desc-box {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.admin-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-floating-add {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-floating-add:hover {
    transform: scale(1.1);
}

/* Quick Menu (Side Navigation) */
.quick-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.8rem 0;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    gap: 4px;
}

.quick-menu-item:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
}

.quick-menu-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-bottom: 2px;
}

.quick-divider {
    width: 60%;
    height: 1px;
    background: #eee;
    margin: 0.2rem 0;
}

/* Hide Old Kakao Button if present */
.kakao-chat-btn {
    display: none !important;
}

/* Shop Page Layout (Advanced Filter) */
.shop-layout {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    padding-bottom: 100px;
}

.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    /* Sticky Sidebar */
    height: fit-content;
    position: sticky;
    top: 100px;
    /* Below header */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.shop-content {
    flex: 1;
}

/* Filter Styles */
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-search-box {
    position: relative;
}

.filter-search-box input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-search-box input:focus {
    border-color: #333;
    outline: none;
}

.filter-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.filter-list {
    max-height: 300px;
    overflow-y: auto;
}

.filter-list::-webkit-scrollbar {
    width: 4px;
}

.filter-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s;
}

.filter-item:hover {
    color: #000;
}

.filter-item input[type='checkbox'] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: right;
}

.price-separator {
    color: #999;
}

.btn-filter-apply {
    width: 100%;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-filter-apply:hover {
    background: #000;
}

.btn-reset-filter {
    width: 100%;
    background: #f1f1f1;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
}

.btn-reset-filter:hover {
    background: #e1e1e1;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 25px 20px;
    /* Increased top/bottom padding to 25px to push content down */
    border-radius: 8px;
    border: 1px solid #eee;
}

.total-count {
    font-weight: 600;
    color: #555;
}

.total-count strong {
    color: #000;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #333;
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .filter-list.category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile */
        gap: 10px;
    }

    .filter-item {
        margin-bottom: 0;
    }
}

/* =========================================
   PREMIUM SEARCH BAR INTERFACE
   ========================================= */

/* Container for the search bar (Hidden by default) */
.search-bar-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    margin-left: 0;
    opacity: 0;
    transform-origin: left center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Active State - Fully Visible & Expanded */
.search-bar-container.active {
    width: 250px;
    margin-left: 15px;
    opacity: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* The Search Input Field */
.header-search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 15px 0 20px;
    font-size: 0.95rem;
    color: #111;
    font-weight: 500;
    outline: none;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Placeholder Styling */
.header-search-input::placeholder {
    color: #999;
    font-weight: 400;
    transition: color 0.3s ease;
}

.search-bar-container.active:focus-within .header-search-input::placeholder {
    color: #ccc;
    /* Fade placeholder on focus */
}

/* Focus State Effect */
.search-bar-container.active:focus-within {
    border-color: var(--accent-color);
    /* Brand color highlight */
    box-shadow: 0 8px 30px rgba(227, 28, 37, 0.15);
    /* Soft glowing brand shadow */
}

/* Header Icons Wrapper Adjustment */
.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 100;
    /* Ensure icons stay above/interactable */
}

.icon-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-btn:active {
    transform: scale(0.9);
}/ *   M o b i l e   N a v   B u t t o n   ( H i d d e n   o n   D e s k t o p )   * /  
 . m o b i l e - m e n u - b t n   {  
         d i s p l a y :   n o n e ;   / *   D e s k t o p   * /  
         b a c k g r o u n d :   n o n e ;  
         b o r d e r :   n o n e ;  
         c u r s o r :   p o i n t e r ;  
         c o l o r :   # 3 3 3 ;  
 }  
  
 / *   R e s p o n s i v e   S t y l e s   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         / *   H e a d e r   &   N a v   * /  
         . m o b i l e - m e n u - b t n   {  
                 d i s p l a y :   b l o c k ;   / *   S h o w   o n   m o b i l e   * /  
         }  
  
         . n a v - l i n k s   {  
                 d i s p l a y :   f l e x ;  
                 f l e x - d i r e c t i o n :   c o l u m n ;  
                 p o s i t i o n :   f i x e d ;  
                 t o p :   8 0 p x ;   / *   B e l o w   h e a d e r   * /  
                 r i g h t :   - 1 0 0 % ;   / *   H i d d e n   I n i t i a l l y   * /  
                 w i d t h :   1 0 0 % ;  
                 h e i g h t :   c a l c ( 1 0 0 v h   -   8 0 p x ) ;  
                 b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 8 ) ;  
                 p a d d i n g :   2 r e m ;  
                 t r a n s i t i o n :   r i g h t   0 . 3 s   e a s e - i n - o u t ;  
                 b o x - s h a d o w :   - 5 p x   0   1 5 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ;  
                 z - i n d e x :   9 9 9 ;  
                 o v e r f l o w - y :   a u t o ;  
                 g a p :   1 . 5 r e m ;  
                 a l i g n - i t e m s :   f l e x - s t a r t ;  
         }  
  
         . n a v - l i n k s . a c t i v e   {  
                 r i g h t :   0 ;   / *   S l i d e   I n   * /  
         }  
  
         . n a v - l i n k s   l i   {  
                 w i d t h :   1 0 0 % ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   # f 0 f 0 f 0 ;  
                 p a d d i n g - b o t t o m :   0 . 5 r e m ;  
         }  
  
         . d r o p d o w n - c o n t e n t   {  
                 p o s i t i o n :   s t a t i c ;   / *   S t a c k   n a t u r a l l y   * /  
                 b o x - s h a d o w :   n o n e ;  
                 b a c k g r o u n d :   # f 9 f 9 f 9 ;  
                 d i s p l a y :   n o n e ;   / *   S t i l l   h i d e   b y   d e f a u l t ,   m a y b e   t o g g l e ?   F o r   n o w   k e e p s   h o v e r   l o g i c   o r   a s s u m e s   c l i c k   * /  
                 t r a n s f o r m :   n o n e ;  
                 w i d t h :   1 0 0 % ;  
                 p a d d i n g - l e f t :   1 r e m ;  
         }  
          
         . d r o p d o w n : h o v e r   . d r o p d o w n - c o n t e n t   {  
                 d i s p l a y :   b l o c k ;   / *   N a t i v e   h o v e r   m i g h t   b e   t r i c k y   o n   m o b i l e ,   b u t   k e e p i n g   f o r   s i m p l i c i t y .   A l t e r n a t i v e l y   c o u l d   a d d   c l i c k   t o g g l e .   * /  
         }  
  
         / *   P r o d u c t   G r i d   -   2   C o l u m n   * /  
         . p r o d u c t - g r i d   {  
                 g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( 2 ,   1 f r ) ;   / *   F o r c e   2   c o l u m n s   * /  
                 g a p :   1 0 p x ;   / *   S m a l l e r   g a p   * /  
         }  
  
         . p r o d u c t - i m a g e   {  
                 h e i g h t :   2 0 0 p x ;   / *   S m a l l e r   i m a g e   h e i g h t   * /  
         }  
  
         . p r o d u c t - i n f o   {  
                 p a d d i n g :   1 r e m ;  
         }  
          
         . p r o d u c t - t i t l e   {  
                 f o n t - s i z e :   1 r e m ;  
         }  
          
         . p r o d u c t - p r i c e   {  
                 f o n t - s i z e :   1 r e m ;  
         }  
  
         / *   H e r o   T e x t   * /  
         . h e r o - c o n t e n t   h 1   {  
                 f o n t - s i z e :   3 r e m ;  
         }  
          
         . h e r o - c o n t e n t   p   {  
                 f o n t - s i z e :   1 r e m ;  
         }  
 }  
 