* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --border-color: #ddd;
    --bg-color: #f9f9f9;
}

body.theme-winter {
    --bg-color: #eef5ff;
    background-image: radial-gradient(circle at top left, rgba(173, 216, 230, 0.3), transparent 40%),
                      radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.6), transparent 35%);
}

body.theme-summer {
    --bg-color: #fff8e6;
    background-image: radial-gradient(circle at top right, rgba(255, 200, 80, 0.25), transparent 35%),
                      radial-gradient(circle at bottom left, rgba(255, 145, 80, 0.18), transparent 30%);
}

body.theme-monsoon {
    --bg-color: #eaf7f7;
    background-image: linear-gradient(180deg, rgba(154, 205, 50, 0.12), rgba(55, 155, 190, 0.12));
}

body.theme-autumn {
    --bg-color: #fff3e8;
    background-image: radial-gradient(circle at top left, rgba(255, 184, 108, 0.18), transparent 40%),
                      radial-gradient(circle at bottom right, rgba(201, 121, 82, 0.14), transparent 35%);
}

body.theme-holi {
    --bg-color: #fff4fb;
    background-image: radial-gradient(circle at top left, rgba(255, 105, 180, 0.25), transparent 25%),
                      radial-gradient(circle at bottom right, rgba(255, 214, 165, 0.25), transparent 25%),
                      radial-gradient(circle at 70% 20%, rgba(135, 206, 235, 0.25), transparent 20%);
}

body.theme-diwali {
    --bg-color: #fff7e4;
    background-image: radial-gradient(circle at top, rgba(255, 193, 7, 0.2), transparent 35%),
                      radial-gradient(circle at bottom, rgba(244, 81, 30, 0.16), transparent 35%);
}

body.theme-independence {
    --bg-color: #fffdf6;
    background-image: linear-gradient(135deg, rgba(255, 153, 51, 0.18) 0%, rgba(255,255,255,0.6) 45%, rgba(19, 136, 8, 0.18) 85%);
}

body.theme-christmas {
    --bg-color: #f5faf0;
    background-image: radial-gradient(circle at top left, rgba(46, 125, 50, 0.2), transparent 30%),
                      radial-gradient(circle at bottom right, rgba(211, 47, 47, 0.2), transparent 30%);
}

body.theme-republic {
    --bg-color: #f9fafb;
    background-image: linear-gradient(135deg, rgba(255, 153, 51, 0.18), rgba(255, 255, 255, 0.6) 30%, rgba(19, 136, 8, 0.18) 70%, rgba(13, 63, 133, 0.12) 100%);
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVIGATION ====================*/
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    flex: 0 0 auto;
    min-width: 320px;
}

.navbar-brand .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand .logo img {
    width: 40% !important;
    max-width: 260px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 768px) {
    .navbar-brand {
        min-width: auto;
    }
    .navbar-brand .logo img {
        width: 200px;
        max-width: 100%;
        height: 30px;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile menu styles */
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        border: 1px solid var(--border-color);
        border-top: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.mobile-menu-open {
        max-height: 500px;
        padding: 1rem 0;
    }

    .navbar-menu .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.3s;
    }

    .navbar-menu .nav-link:hover {
        background-color: var(--bg-color);
        color: var(--primary-color);
    }

    .navbar-menu .nav-link:last-child {
        border-bottom: none;
    }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ==================== FLASH MESSAGES ====================*/
.flash-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.seller-update-banner {
    border-left: 4px solid #2563eb;
}

.flash-message button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

.install-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    width: min(680px, calc(100% - 30px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
}

.install-banner p {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: #333;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.install-banner .btn {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.install-banner .btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.install-banner .btn-secondary:hover {
    background-color: #e2e2e2;
}

/* ==================== BUTTONS ====================*/
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #45b3aa;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-update {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ==================== HERO SECTION ====================*/
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.85), rgba(78, 205, 196, 0.85)), 
                var(--hero-bg-image, url('/static/images/hero-bg.jpg')) center/cover no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    border-bottom: 3px solid var(--primary-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ==================== CATEGORY SHOWCASE ====================*/
.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.category-card div {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.category-card h3 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-dresses {
    background-image: url('/static/images/hero-kurti.jpg');
}

.category-topwear {
    background-image: url('/static/images/hero-suit.jpg');
}

.category-bottomwear {
    background-image: url('/static/images/gulab.jpeg');
}

/* ==================== FILTERS ====================*/
.filters {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.filters h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.filters a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background-color: rgba(255,255,255,0.85);
    color: var(--text-color);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s;
}

.filters a:hover,
.filters a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

/* ==================== PRODUCTS GRID ====================*/
.products-section {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
}

.products-section h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.out-of-stock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.add-to-cart-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.add-to-cart-form input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.add-to-cart-form .btn {
    flex: 1;
}

/* ==================== PAGINATION ====================*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-info {
    color: var(--text-color);
    font-weight: 500;
}

/* ==================== PRODUCT IMAGE GALLERY ====================*/
.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.product-detail-info h1 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-detail-info .price {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.stock-status {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.stock-status.in-stock {
    color: #28a745;
    background-color: #d4edda;
}

.stock-status.out-of-stock {
    color: #dc3545;
    background-color: #f8d7da;
}

.product-description {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 4px;
}

.add-to-cart-section {
    margin: 2rem 0;
}

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quantity-selector input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 80px;
}

.product-benefits ul {
    list-style: none;
    margin-top: 0.5rem;
}

.product-benefits li {
    padding: 0.5rem 0;
}

/* ==================== MOBILE APP DOWNLOAD ====================*/
.mobile-app-download-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    color: white;
}

.mobile-app-download-section.gallery-download {
    margin: 3rem auto;
}

.download-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-header {
    margin-bottom: 2rem;
}

.download-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.download-header p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 180px;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.download-btn .app-icon {
    font-size: 1.5rem;
    display: inline-block;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
}

.android-btn:hover {
    background-color: #f0f0f0;
}

.apple-btn:hover {
    background-color: #f0f0f0;
}

@media (max-width: 600px) {
    .mobile-app-download-section {
        padding: 1.5rem;
    }

    .download-header h2 {
        font-size: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .download-btn {
        width: 100%;
        min-width: unset;
    }
}

/* ==================== REVIEWS ====================*/
.reviews-section {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.reviews-section h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.ratings-summary {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stars {
    font-size: 1.5rem;
    color: #ffc107;
    letter-spacing: 0.2rem;
    margin-bottom: 0.5rem;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    opacity: 0.5;
}

.star {
    color: #ddd;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Review Form */
.review-form-container {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.review-form-container h3 {
    margin-bottom: 1rem;
}

.review-form .form-group {
    margin-bottom: 1rem;
}

.review-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.review-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.star-rating .star {
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.filled {
    color: #ffc107;
    text-shadow: 0 0 2px rgba(255, 193, 7, 0.5);
}

.review-form small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.login-prompt {
    text-align: center;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Reviews List */
.no-reviews {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    background-color: #fafafa;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-info strong {
    color: var(--text-color);
}

.review-date {
    color: #999;
    font-size: 0.85rem;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-delete:hover {
    background-color: #c82333;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.rating-value {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.review-image {
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
}

.review-media img,
.review-media video {
    border-radius: 4px;
    display: block;
}

/* ==================== RELATED PRODUCTS ====================*/
.related-products {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.related-products h2 {
    margin-bottom: 2rem;
}

/* ==================== FORMS ====================*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==================== AUTH PAGES ====================*/
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-box {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-link {
    text-align: center;
    color: var(--text-color);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ==================== CART ====================*/
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    border-bottom: 2px solid var(--border-color);
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
}

.cart-table th {
    font-weight: 600;
    color: var(--text-color);
}

.cart-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.cart-product-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
}

.product-info {
    display: flex;
    align-items: center;
}

.quantity-form {
    display: flex;
    gap: 0.25rem;
}

.quantity-input {
    width: 60px !important;
}

.cart-summary {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    font-weight: bold;
    font-size: 1.2rem;
    border: none;
    padding: 1rem 0;
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 4px;
}

.empty-cart h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* ==================== CHECKOUT ====================*/
.checkout-container {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.checkout-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-section h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.radio-option:hover {
    background-color: var(--bg-color);
}

.radio-option input {
    margin-right: 1rem;
    cursor: pointer;
}

.order-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-table th {
    background-color: var(--bg-color);
    font-weight: 600;
}

.checkout-summary {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* ==================== PAYMENT ====================*/
.payment-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.payment-box {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.payment-box h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.order-summary {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.order-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-element {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* ==================== PROFILE ====================*/
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-info {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.profile-info h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row span:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.orders-section {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
}

.orders-section h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background-color: var(--bg-color);
    font-weight: 600;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-completed,
.badge-succeeded {
    background-color: #d4edda;
    color: #155724;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-processing,
.badge-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-delivered {
    background-color: #d4edda;
    color: #155724;
}

.badge-canceled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==================== PROFILE FORM ====================*/
.profile-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    max-width: 600px;
    margin: 2rem auto;
}

.profile-form {
    margin-top: 2rem;
}

/* ==================== ORDER CONFIRMATION ====================*/
.confirmation-box {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    max-width: 700px;
    margin: 2rem auto;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.confirmation-header h1 {
    color: #28a745;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 4px;
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.detail-table th,
.detail-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.detail-table th {
    font-weight: 600;
    background-color: white;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.confirmation-note {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== CUSTOMER ORDER DETAIL ====================*/
.order-detail-container {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    max-width: 980px;
    margin: 2rem auto;
}

.order-detail-container h1,
.order-detail-container h2 {
    margin-bottom: 1rem;
}

.order-modify-section {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 4px;
    margin: 1.25rem 0 1.5rem;
}

.order-modify-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-modify-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    resize: vertical;
}

.cancel-order-form {
    margin-top: 0.75rem;
}

.modify-note {
    color: #555;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.order-items-table th,
.order-items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.order-items-table th {
    background-color: var(--bg-color);
}

.order-item-product {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.order-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recommendation-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.recommendation-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommendation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.recommendation-card .rec-info {
    padding: 0.75rem;
}

.recommendation-card .category {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.recommendation-card .price {
    margin-top: 0.4rem;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .order-detail-container {
        margin: 1rem;
        padding: 1rem;
    }

    .order-items-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.confirmation-actions .btn {
    flex: 1;
    min-width: 200px;
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-indicators {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0.5rem 0;
    font-weight: 500;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    justify-content: center;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

/* ==================== ERROR PAGES ====================*/
.error-page {
    text-align: center;
    padding: 4rem 0;
    background-color: white;
    border-radius: 4px;
    margin: 2rem 0;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* ==================== FEATURES SECTION ====================*/
.features-section {
    background-color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
}

/* ==================== GALLERY PAGE ====================*/
.gallery-page {
    padding: 40px 0 60px;
}

.gallery-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 1.5rem 0 2rem;
    width: 100%;
}

.brand-logo {
    max-width: 280px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.gallery-hero h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.gallery-hero p {
    font-size: 1.1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.gallery-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.gallery-caption {
    padding: 0.75rem;
    font-weight: bold;
    color: #1a1a1a;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    min-height: 55px;
}

/* ==================== FOOTER ====================*/
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.app-download-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

.app-link .icon {
    font-size: 1.3rem;
}

.app-link .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #555;
    color: #999;
}

/* ==================== RESPONSIVE ====================*/
@media (max-width: 768px) {
    .navbar-menu {
        gap: 1rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 4rem 1rem;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        border-radius: 8px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 0.9rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.5rem;
    }
}

/* ==================== ADMIN STYLES ====================*/
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.admin-sidebar {
    width: 250px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.admin-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-nav-link:hover {
    background-color: var(--bg-color);
    border-left-color: var(--primary-color);
}

.admin-nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--primary-color);
}

.admin-nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-header h1 {
    color: var(--text-color);
    margin: 0;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-main {
    background-color: white;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ==================== ADMIN DASHBOARD ====================*/
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.recent-orders,
.low-stock-alert {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.recent-orders h3,
.low-stock-alert h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.order-info p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.status-shipped {
    background-color: #cce5ff;
    color: #004085;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-canceled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==================== ADMIN TABLES ====================*/
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.admin-table thead {
    background-color: var(--bg-color);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-color);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ==================== ADMIN FORMS ====================*/
.admin-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ==================== ADMIN SETTINGS ====================*/
.admin-settings {
    max-width: 800px;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-header h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.settings-section {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.info-item .label {
    font-weight: 600;
    color: var(--text-color);
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.current-category-image {
    max-width: 360px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: white;
}

.current-category-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.section-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

/* ==================== ADMIN RESPONSIVE ====================*/
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-actions .btn {
        width: 100%;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
}

/* ==================== ADDITIONAL MOBILE RESPONSIVE STYLES ====================*/
@media (max-width: 768px) {
    /* Container and layout adjustments */
    .container {
        padding: 0 1rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        min-height: 44px; /* Touch-friendly size */
    }

    /* Form adjustments */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Product grid adjustments */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    /* Category cards adjustments */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        height: 200px;
    }

    .category-card h3 {
        font-size: 1.4rem;
    }

    /* Hero section adjustments */
    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Flash messages adjustments */
    .flash-message {
        margin: 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .flash-message button {
        align-self: flex-end;
    }

    /* Auth pages adjustments */
    .auth-box {
        margin: 1rem;
        padding: 1.5rem;
    }

    /* Cart adjustments */
    .cart-container {
        flex-direction: column;
    }

    .cart-items,
    .cart-summary {
        width: 100%;
    }

    .cart-summary {
        margin-top: 2rem;
    }

    /* Profile adjustments */
    .profile-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    /* Order confirmation adjustments */
    .confirmation-box {
        margin: 1rem;
        padding: 1.5rem;
    }

    .confirmation-header h1 {
        font-size: 1.8rem;
    }

    /* Gallery adjustments */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .app-download-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    /* Table adjustments for very small screens */
    .cart-table,
    .order-table,
    .orders-table,
    .admin-table {
        font-size: 0.85rem;
    }

    .cart-table th,
    .cart-table td,
    .order-table th,
    .order-table td,
    .orders-table th,
    .orders-table td,
    .admin-table th,
    .admin-table td {
        padding: 0.4rem;
    }
}
