/* laon2link - SHMarket Style CSS */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004499;
    --hover-blue: #0052a3;
    --light-blue: #e6f2ff;
    --success-green: #28a745;
    --warning-orange: #ff6600;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #dddddd;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text {
    color: var(--text-gray);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: var(--primary-blue);
}

.top-bar-right i {
    margin-right: 5px;
    color: var(--primary-blue);
}

.language-selector select {
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

/* Main Header */
.main-header {
    background: white;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-blue);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.company-identity {
    flex-shrink: 0;
}

.company-name {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
    letter-spacing: -1px;
}

.company-logo-link {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.company-logo-link:hover {
    opacity: 0.8;
}

.tagline {
    font-size: 12px;
    color: var(--text-gray);
    display: block;
    margin-top: -5px;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 700px;
}

.search-wrapper {
    display: flex;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    overflow: hidden;
}

#searchInput {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--hover-blue);
}

.quick-search-tags {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-gray);
}

.quick-search-tags span {
    margin-right: 10px;
}

.search-tag {
    color: var(--primary-blue);
    text-decoration: none;
    margin-right: 10px;
    padding: 2px 6px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.search-tag:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 25px;
    margin-left: 40px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--text-dark);
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.action-item:hover {
    background: var(--bg-light);
}

.action-item i {
    font-size: 20px;
    color: var(--primary-blue);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--warning-orange);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Category Navigation */
.category-nav {
    background: var(--primary-blue);
    position: relative;
}

.category-nav-content {
    display: flex;
    align-items: center;
    height: 45px;
}

.all-categories-btn {
    background: var(--secondary-blue);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}

.all-categories-btn:hover {
    background: var(--hover-blue);
}

.main-nav-links {
    display: flex;
    flex: 1;
    height: 100%;
}

.main-nav-links a {
    color: white;
    text-decoration: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: background 0.3s;
    font-weight: 500;
}

.main-nav-links a:hover {
    background: var(--hover-blue);
}

.nav-quick-links {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

.nav-quick-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-quick-links a:hover {
    opacity: 1;
}

/* Categories Dropdown */
.categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-light);
    z-index: 1000;
}

.categories-dropdown.show {
    display: block;
}

.categories-grid {
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Main Content */
.main-content {
    margin-top: 20px;
    min-height: 500px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

/* Sidebar */
.sidebar-left {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-right {
    width: 200px;
    flex-shrink: 0;
}

/* Panels */
.category-panel,
.filter-panel,
.info-panel,
.info-widget {
    background: white;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.panel-title {
    background: var(--bg-light);
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.panel-title i {
    margin-right: 8px;
    color: var(--primary-blue);
}

/* Category Tree */
.category-tree {
    padding: 10px 0;
}

.category-item {
    border-bottom: 1px solid #f0f0f0;
}

.category-link {
    display: block;
    padding: 8px 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.category-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.category-link.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: bold;
}

.category-link.has-children {
    padding-right: 35px; /* Extra space for the arrow icon */
}

.category-link.has-children::after {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s;
}

.category-link.has-children.expanded::after {
    transform: translateY(-50%) rotate(90deg);
}

.subcategories {
    display: none;
    background: #fafafa;
}

.subcategories.show {
    display: block;
}

.subcategory-link {
    padding-left: 30px;
    font-size: 13px;
}

.subsubcategory-link {
    padding-left: 45px;
    font-size: 13px;
}

/* Filter Panel */
.filter-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section h4 {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.price-inputs input {
    flex: 1;
    min-width: 0; /* Prevent flex items from overflowing */
    padding: 6px 4px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 13px;
    box-sizing: border-box;
}

.price-inputs span {
    flex-shrink: 0;
    color: var(--text-gray);
}

.apply-price-btn {
    width: 100%;
    padding: 6px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 13px;
}

.apply-price-btn:hover {
    background: var(--hover-blue);
}

.filter-options {
    max-height: 150px;
    overflow-y: auto;
}

.filter-option {
    display: block;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
}

.filter-option input {
    margin-right: 8px;
}

.clear-filters-btn {
    width: calc(100% - 30px);
    margin: 15px;
    padding: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.clear-filters-btn:hover {
    background: #c82333;
}

/* Info Panel */
.info-content {
    padding: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.info-content p {
    margin-bottom: 8px;
}

.info-content i {
    width: 16px;
    color: var(--primary-blue);
    margin-right: 8px;
}

/* Product Area */
.product-area {
    flex: 1;
    background: white;
    border: 1px solid var(--border-color);
    min-height: 600px;
}

/* Breadcrumb */
.breadcrumb-bar {
    padding: 10px 15px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: var(--text-light);
}

.view-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-count {
    font-size: 13px;
    color: var(--text-gray);
}

.view-mode {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 5px 10px;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
}

.view-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Sorting Bar */
.sorting-bar {
    padding: 10px 15px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sorting-bar label {
    font-size: 13px;
    color: var(--text-gray);
    margin-right: 10px;
}

.sort-select,
#itemsPerPage {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Welcome Message */
.welcome-message {
    padding: 20px 40px;
    text-align: center;
}

.welcome-content h2 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 24px;
}

.welcome-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    font-size: 24px;
    color: var(--primary-blue);
}

.select-category-msg {
    background: var(--light-blue);
    padding: 15px;
    border-radius: 5px;
    color: var(--primary-blue);
    font-weight: bold;
    margin-top: 30px;
}

/* Featured Categories */
.featured-categories {
    margin-top: 20px;
}

.featured-categories h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-light);
    border-color: var(--primary-blue);
}

.category-card-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: var(--bg-light);
    border-radius: 3px;
}

.category-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-card i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.category-card h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.category-card span {
    color: var(--text-gray);
    font-size: 13px;
}

/* Products Grid */
.products-container {
    padding: 20px 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.product-image-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--bg-light);
    background-image: url('../images/no-image.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image.loaded {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-orange);
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
}

.product-info {
    padding: 12px;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-name {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-model {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-cart,
.btn-details {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-cart {
    background: var(--primary-blue);
    color: white;
}

.btn-cart:hover {
    background: var(--hover-blue);
}

.btn-details {
    background: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-details:hover {
    background: var(--light-blue);
}

/* List View Product Card */
.products-list .product-card {
    display: flex;
    padding: 15px;
}

.products-list .product-image-wrapper {
    width: 150px;
    height: 150px;
    padding-top: 0;
    flex-shrink: 0;
    margin-right: 20px;
}

.products-list .product-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.products-list .product-name {
    height: auto;
    font-size: 14px;
    margin-bottom: 10px;
}

.products-list .product-price {
    margin-top: auto;
}

/* Pagination */
.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    border-top: 1px solid var(--border-color);
}

.pagination button {
    min-width: 32px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--light-blue);
    border-color: var(--primary-blue);
}

.pagination button.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 18px;
    color: var(--text-dark);
}

.close-modal {
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
    margin: 0;
}

.close-modal:hover {
    color: white;
    background: var(--primary-blue);
}

.modal-body {
    padding: 20px;
}

/* Product Modal Content */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-images-section {
    position: sticky;
    top: 20px;
}

.main-product-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--bg-light);
    background-image: url('../images/no-image.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-blue);
}

.product-details-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-meta {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid white;
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    width: 120px;
    font-weight: bold;
    color: var(--text-gray);
}

.meta-value {
    flex: 1;
    color: var(--text-dark);
}

.modal-price {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: bold;
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-primary {
    padding: 12px 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--hover-blue);
}

.btn-secondary {
    padding: 12px 30px;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--light-blue);
}

.specifications-section {
    margin-top: 30px;
}

.specifications-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--bg-light);
    font-weight: bold;
    width: 30%;
}

/* Right Sidebar Widgets */
.info-widget {
    margin-bottom: 20px;
}

.info-widget h4 {
    background: var(--bg-light);
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.info-widget h4 i {
    margin-right: 8px;
    color: var(--primary-blue);
}

.recent-items,
.benefits-list,
.hours-info {
    padding: 12px;
    font-size: 13px;
}

.empty-message {
    color: var(--text-light);
    text-align: center;
    padding: 20px 10px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 5px 0;
    color: var(--text-gray);
}

.hours-info p {
    margin-bottom: 5px;
    color: var(--text-gray);
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 16px;
}

.footer-section p,
.footer-section ul {
    font-size: 13px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info i {
    width: 16px;
    margin-right: 8px;
    color: var(--primary-blue);
}

/* Back to Top */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.back-to-top:hover {
    background: var(--hover-blue);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: block;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-green);
    color: white;
    padding: 15px 20px;
    border-radius: 3px;
    box-shadow: 0 4px 12px var(--shadow-medium);
    z-index: 3000;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .sidebar-right {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-section {
        max-width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar-left {
        width: 100%;
        display: flex;
        gap: 20px;
    }
    
    .sidebar-left > div {
        flex: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        padding: 10px;
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -2px 8px var(--shadow-light);
    }
    
    .main-nav-links,
    .nav-quick-links {
        display: none;
    }
    
    .all-categories-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sidebar-left {
        flex-direction: column;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin-bottom: 60px; /* Space for fixed bottom nav */
    }
}

/* ============================================================================
   Authentication Styles
   ============================================================================ */

.auth-modal .modal-content {
    max-width: 450px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.auth-tab:hover {
    color: var(--primary-blue);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.auth-form .btn-primary {
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
}

.auth-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.auth-link a {
    color: var(--primary-blue);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-message {
    display: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Account Dropdown */
.account-dropdown {
    position: fixed;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
    z-index: 10000;
    min-width: 220px;
    animation: slideDown 0.3s ease;
}

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

.account-menu {
    padding: 10px 0;
}

.account-menu-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-menu-header i {
    font-size: 24px;
    color: var(--primary-blue);
}

.account-menu-header span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s;
    color: var(--text-dark);
    font-size: 15px;
}

.account-menu-item:hover {
    background: var(--bg-light);
}

.account-menu-item i {
    width: 20px;
    color: var(--text-light);
}

/* Account button styling */
#accountBtn {
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auth-modal .modal-content {
        max-width: 90%;
        margin: 20px auto;
    }

    .account-dropdown {
        right: 10px !important;
        left: 10px !important;
        width: auto;
        max-width: calc(100vw - 20px);
    }
}
