/*====================================================================
  1. GENERAL STYLES & FONT IMPORTS
====================================================================*/
/* Importing Poppins and Playfair Display fonts from Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Universal box-sizing for consistent layout behavior. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles: font, line-height, text/background colors, smooth dark mode transition. */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Utility class to disable scrolling, used when modals/sidebar are active. */
body.no-scroll {
    overflow: hidden;
}

/* Container for consistent content width and centering. */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Link styles: no underline, inherit color, smooth transition. */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* General link hover effect. */
a:hover {
    color: var(--primary-button-color);
}

/* Remove default list styling. */
ul {
    list-style: none;
}

/* Image styles: max-width, auto height, block display, prevent dragging/selection. */
img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Button Styles: consistent padding, border-radius, font, cursor, and shadow. */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: var(--button-shadow);
    user-select: none;
    -webkit-user-select: none;
}

/* Primary button styling and hover effects. */
.primary-btn {
    background-color: var(--primary-button-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: var(--primary-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
}

/* Secondary button styling and hover effects. */
.secondary-btn {
    background-color: var(--secondary-button-color);
    color: var(--white-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
}

/* Danger button styling for delete or critical actions. */
.danger-btn {
    background-color: var(--error-color);
    color: var(--white-color);
}

.danger-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
}

/* Form Validation Styling: error/success messages and input borders. */
.form-group .error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Invalid input fields. */
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: var(--error-color) !important;
}

/* Valid input fields. */
input.is-valid,
textarea.is-valid,
select.is-valid {
    border-color: var(--success-color) !important;
}

/* Loading Spinner: animation for asynchronous operations. */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-button-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Skeleton: placeholder for content while loading. */
.loading-skeleton-card,
.loading-skeleton-category {
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #e0e0e0 8%, #f0f0f0 18%, #e0e0e0 33%);
    background-size: 800px 100%;
    animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-skeleton-card {
    height: 350px;
}

.loading-skeleton-category {
    height: 150px;
}

/* Notification Container: fixed position for toast notifications. */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Notification Toast: styling for success, error, and info messages. */
.notification-toast {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white-color);
    padding: 16px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideInFadeOut 4.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-weight: 500;
    min-width: 250px;
    text-align: center;
}

.notification-toast.error {
    background: linear-gradient(135deg, var(--error-color), #d32f2f);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-toast.success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-toast.info {
    background: linear-gradient(135deg, var(--secondary-button-color), var(--secondary-button-hover));
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-toast {
    color: #FFFFFF !important;
}

@keyframes slideInFadeOut {
    0% { opacity: 0; transform: translateY(-30px); }
    5% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

/*====================================================================
  2. COLOR VARIABLES & DARK MODE
====================================================================*/
/* Root color variables for light theme. */
:root {
    --bg-color: #F8F8F8;
    --text-color: #333333;
    --light-text-color: #666666;
    --white-color: #FFFFFF;
    --border-color: #EAEAEA;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --button-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --button-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
    --primary-color-hue: 330;
    --primary-button-color: hsl(var(--primary-color-hue), 60%, 55%);
    --primary-button-hover: hsl(var(--primary-color-hue), 65%, 48%);
    --secondary-button-color: hsl(200, 40%, 65%);
    --secondary-button-hover: hsl(200, 45%, 58%);
    --accent-color: hsl(150, 45%, 55%);
    --accent-hover: hsl(150, 50%, 48%);
    --gold-color: #FFD700;
    --gold-hover: #E6BE00;
    --success-color: #28a745;
    --error-color: #dc3545;
    --gradient-hero: linear-gradient(135deg, #FFEFBA, #FFFFFF);
    --flash-sale-bg-color: #FD7F20;
    --flash-sale-text-color: #FFFFFF;
    --flash-sale-timer-color: #FFFF00;
    --flash-sale-price-current-light-mode: #333333;
    --footer-bg-color: #263238;
    --footer-text-color: #E0E0E0;
    --footer-link-hover-color: var(--primary-button-color);
    --footer-social-icon-color: #AAAAAA;
    --footer-payment-icon-color: var(--gold-color);
    --footer-border-line-color: rgba(255, 255, 255, 0.08);
    --header-bg-dark: #2B3B5B;
    --header-text-light: #F0F0F0;
    --header-icon-hover: #ADD8E6;
}

/* Dark Mode specific styles: overrides light theme variables. */
body.dark-mode {
    --bg-color: #1A1A1A;
    --dark-mode-card-bg: #2C2C2C;
    --text-color: #E0E0E0;
    --light-text-color: #A0A0A0;
    --white-color: #121212;
    --border-color: #3A3A3A;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.5);
    --button-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --button-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.5);
    --primary-button-color: hsl(var(--primary-color-hue), 70%, 65%);
    --primary-button-hover: hsl(var(--primary-color-hue), 75%, 58%);
    --secondary-button-color: hsl(200, 50%, 45%);
    --secondary-button-hover: hsl(200, 55%, 38%);
    --accent-color: hsl(150, 50%, 40%);
    --accent-hover: hsl(150, 55%, 35%);
    --gradient-hero: linear-gradient(135deg, #2A2A2A, #1A1A1A);
    --flash-sale-bg-color: #C25B00;
    --footer-bg-color: #121212;
    --footer-text-color: #BDC3C7;
    --footer-link-hover-color: var(--primary-button-color);
    --footer-social-icon-color: #888888;
    --footer-payment-icon-color: var(--gold-color);
    --footer-border-line-color: rgba(255, 255, 255, 0.05);
    --header-bg-dark: #1A2840;
    --header-text-light: #F0F0F0;
    --header-icon-hover: #ADD8E6;
}

/* Dark Mode Element Overrides: apply dark mode background/text colors to common elements. */
body.dark-mode .mobile-sidebar,
body.dark-mode .product-card,
body.dark-mode .category-card,
body.dark-mode .feature-item,
body.dark-mode .testimonial-card,
body.dark-mode .modal-content,
body.dark-mode .search-results,
body.dark-mode .profile-orders,
body.dark-mode .cart-items,
body.dark-mode .wishlist-items,
body.dark-mode .cart-summary,
body.dark-mode .checkout-form-section,
body.dark-mode .checkout-summary-section,
body.dark-mode .checkout-order-items,
body.dark-mode .checkout-summary,
body.dark-mode .order-tracking-section .tracking-form-container,
body.dark-mode .order-tracking-results,
body.dark-mode .info-page-modal-content,
body.dark-mode .order-detail-modal-content,
body.dark-mode .edit-profile-modal-content,
body.dark-mode .register-modal-content {
    background-color: var(--dark-mode-card-bg);
    color: var(--text-color);
}

/* Dark Mode Text Color Overrides for specific elements. */
body.dark-mode .logo,
body.dark-mode .section h2,
body.dark-mode .product-card-content h3,
body.dark-mode .category-card h3,
body.dark-mode .feature-item h3,
body.dark-mode .testimonial-card h4,
body.dark-mode .accordion-header,
body.dark-mode .contact-info h3,
body.dark-mode .contact-form-container h3,
body.dark-mode .contact-form label,
body.dark-mode .footer-col h3,
body.dark-mode .modal-content h3,
body.dark-mode .search-result-info h4,
body.dark-mode .profile-details p,
body.dark-mode .profile-details h4,
body.dark-mode .profile-order-item span,
body.dark-mode .login-form label,
body.dark-mode .cart-item-details h4,
body.dark-mode .wishlist-item-details h4,
body.dark-mode .cart-item-total,
body.dark-mode .checkout-header h2,
body.dark-mode .checkout-form-section h3,
body.dark-mode .checkout-summary-section h3,
body.dark-mode .shipping-form label,
body.dark-mode .checkout-item-details h4,
body.dark-mode .payment-options label,
body.dark-mode .order-tracking-section label,
body.dark-mode .order-tracking-section .order-found-title,
body.dark-mode .order-tracking-section .tracking-items h4,
body.dark-mode .order-detail-modal-content h3,
body.dark-mode .order-detail-content p,
body.dark-mode .order-detail-content h4,
body.dark-mode .edit-profile-modal-content h3,
body.dark-mode .edit-profile-form-area label,
body.dark-mode .register-modal-content h3,
body.dark-mode .register-form-area label {
    color: var(--text-color);
}

body.dark-mode .hero-content h1,
body.dark-mode .hero-content p,
body.dark-mode .newsletter-section h2,
body.dark-mode .newsletter-section p {
    color: var(--text-color) !important;
}

body.dark-mode .accordion-header {
    background-color: var(--secondary-button-color);
}
body.dark-mode .accordion-header:hover {
    background-color: var(--secondary-button-hover);
}
body.dark-mode .accordion-content {
    background-color: var(--dark-mode-card-bg);
}

body.dark-mode .newsletter-section {
    background: var(--dark-mode-card-bg);
}
body.dark-mode .newsletter-form button {
    background-color: var(--primary-button-color);
    color: var(--white-color);
}
body.dark-mode .newsletter-form button:hover {
    background-color: var(--primary-button-hover);
    color: var(--white-color);
}

body.dark-mode .product-card .add-to-cart-btn,
body.dark-mode .primary-btn {
    background-color: var(--primary-button-color);
    color: var(--white-color);
}
body.dark-mode .product-card .add-to-cart-btn:hover,
body.dark-mode .primary-btn:hover {
    background-color: var(--primary-button-hover);
}

body.dark-mode .secondary-btn {
    background-color: var(--secondary-button-color);
    color: var(--white-color);
}
body.dark-mode .secondary-btn:hover {
    background-color: var(--secondary-button-hover);
}

body.dark-mode .add-to-wishlist-btn,
body.dark-mode .quick-view-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .add-to-wishlist-btn:hover,
body.dark-mode .quick-view-btn:hover {
    background-color: var(--primary-button-color);
    color: var(--white-color);
    border-color: var(--primary-button-color);
}
body.dark-mode .product-card .added-to-wishlist .fas.fa-heart {
    color: var(--error-color);
}
body.dark-mode .wishlist-item .move-to-cart-btn {
    background-color: var(--accent-color);
    color: var(--white-color);
}
body.dark-mode .wishlist-item .move-to-cart-btn:hover {
    background-color: var(--accent-hover);
}

body.dark-mode .loading-skeleton-card,
body.dark-mode .loading-skeleton-category {
    background: linear-gradient(to right, #3A3A3A 8%, #4A4A4A 18%, #3A3A3A 33%);
}

body.dark-mode .filter-group select,
body.dark-mode .newsletter-form input,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .search-input-group input,
body.dark-mode .login-form input,
body.dark-mode .cart-item-quantity input,
body.dark-mode .shipping-form input,
body.dark-mode .shipping-form select,
body.dark-mode .order-tracking-form input,
body.dark-mode .edit-profile-form-area input,
body.dark-mode .register-form-area input {
    background-color: var(--white-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-mode .filter-group select:focus,
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus,
body.dark-mode .login-form input:focus,
body.dark-mode .shipping-form input:focus,
body.dark-mode .shipping-form select:focus,
body.dark-mode .order-tracking-form input:focus,
body.dark-mode .edit-profile-form-area input:focus,
body.dark-mode .register-form-area input:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-color-hue), 60%, 55%, 0.2);
}

body.dark-mode .search-result-item:hover {
    background-color: #383838;
}

body.dark-mode .cart-item-quantity button {
    background-color: var(--border-color);
    color: var(--text-color);
}
body.dark-mode .cart-item-quantity button:hover {
    background-color: var(--secondary-button-hover);
    color: var(--white-color);
}

body.dark-mode .remove-from-cart-btn,
body.dark-mode .remove-from-wishlist-btn {
    color: var(--error-color);
}

/*====================================================================
  3. HEADER & NAVIGATION
====================================================================*/
.main-header {
    background-color: var(--header-bg-dark);
    padding: 12px 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    flex-wrap: nowrap;
    padding-bottom: 0;
    gap: 20px;
}

.navbar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--header-text-light);
    flex-shrink: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.navbar .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 0;
}

.navbar .nav-links::-webkit-scrollbar {
    display: none;
}

.navbar .nav-links li {
    position: relative;
}

.navbar .nav-links li a {
    font-weight: 600;
    padding: 8px 12px;
    position: relative;
    white-space: nowrap;
    color: var(--header-text-light);
    font-size: 0.95rem;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    display: inline-block;
    border-radius: 6px;
}

.navbar .nav-links li a .dropdown-arrow {
    display: none;
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    width: 0;
    height: 3px;
    background-color: var(--gold-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: var(--header-icon-hover);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar .nav-links li a.active-link,
.navbar .nav-links li a.active-link:hover {
    color: var(--gold-color);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar .nav-links li a.active-link::after {
    width: 100%;
    background-color: var(--gold-color);
}

.dropdown-menu {
    display: none !important;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
    display: none !important;
}

.navbar .nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    margin-left: 20px;
}

.navbar .nav-icons .icon-btn {
    font-size: 1.3rem;
    color: var(--header-text-light);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-icons .icon-btn:hover {
    color: var(--header-icon-hover);
    transform: scale(1.1);
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--primary-button-color);
    color: var(--white-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 3px 7px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle {
    font-size: 1.8rem;
    display: none;
    background: none;
    border: none;
    color: var(--header-text-light);
    padding: 0;
    margin-left: 15px;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--white-color);
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 25px;
    /* Tambahkan overflow-y untuk scrollbar */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Untuk scroll yang halus di iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-button-color) var(--border-color); /* Warna scrollbar Firefox */
}

/* Aturan untuk scrollbar Webkit */
.mobile-sidebar::-webkit-scrollbar {
    width: 8px; /* Lebar scrollbar */
}
.mobile-sidebar::-webkit-scrollbar-track {
    background: var(--border-color); /* Warna track scrollbar */
    border-radius: 10px;
}
.mobile-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-button-color); /* Warna thumb scrollbar */
    border-radius: 10px;
}
.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-button-hover); /* Warna thumb saat hover */
}


.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    transition: border-color 0.4s ease;
}

.sidebar-header .logo {
    font-size: 1.8rem;
    color: var(--primary-button-color);
}

.sidebar-header .close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}
.sidebar-header .close-btn:hover {
    color: var(--error-color);
}

.sidebar-nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}

.sidebar-nav-links li a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.sidebar-nav-links li a:hover {
    color: var(--primary-button-color);
}

.sidebar-icons {
    display: flex;
    justify-content: space-around;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}

.sidebar-icons .icon-btn {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}
.sidebar-icons .icon-btn:hover {
    color: var(--primary-button-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/*====================================================================
  4. HERO SECTION
====================================================================*/
.hero-section {
    color: var(--white-color);
    padding: 160px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    background: url('assets/images/placeholder-hero.jpg') no-repeat center center/cover;
}

.hero-background-image {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--text-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

/*====================================================================
  5. GENERAL SECTION STYLES
====================================================================*/
section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

/*====================================================================
  6. PRODUCT LISTING & FILTERS
====================================================================*/
.products-section,
.featured-products-section,
.categories-section,
.flash-sale-section,
.recently-viewed-section,
.order-tracking-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-group label {
    margin-right: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
.filter-group select:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-color-hue), 60%, 55%, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.product-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-color);
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-lineclamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-content .product-rating {
    margin-bottom: 12px;
    color: var(--gold-color);
    font-size: 1.1rem;
}

.product-card-content .product-rating span {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-left: 5px;
}

.product-card-content .product-prices {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 18px;
}

.product-card-content .product-prices p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-card-content .old-price {
    text-decoration: line-through;
    color: var(--light-text-color);
    font-size: 1rem;
    margin-right: 12px;
}

.product-card-content .current-price {
    color: var(--primary-button-color);
}

.product-card-content .flash-sale-price {
    color: var(--flash-sale-price-current-light-mode);
}
body.dark-mode .product-card-content .flash-sale-price {
    color: var(--flash-sale-text-color);
}
.flash-sale-section .old-price {
    color: var(--light-text-color);
}
body.dark-mode .flash-sale-section .old-price {
    color: rgba(255, 255, 255, 0.7);
}

.product-card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.product-card .add-to-cart-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 8px;
    flex-grow: 1;
}

.product-card .add-to-wishlist-btn,
.product-card .quick-view-btn {
    background-color: var(--border-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.product-card .add-to-wishlist-btn:hover,
.product-card .quick-view-btn:hover {
    background-color: var(--primary-button-color);
    color: var(--white-color);
    border-color: var(--primary-button-color);
    transform: translateY(-2px);
}

.product-card .added-to-wishlist .fas.fa-heart {
    color: var(--error-color);
}

.load-more-btn {
    display: block;
    margin: 40px auto 0;
    padding: 14px 30px;
}

/*====================================================================
  7. CATEGORY SECTION
====================================================================*/
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.category-card i {
    font-size: 3.5rem;
    color: var(--primary-button-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.category-card:hover i {
    color: var(--accent-color);
}

.category-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
}

/*====================================================================
  8. FLASH SALE SECTION
====================================================================*/
.flash-sale-section {
    background-color: var(--flash-sale-bg-color);
    color: var(--flash-sale-text-color);
    padding: 80px 0;
    text-align: center;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.flash-sale-section h2 {
    color: var(--flash-sale-text-color);
    margin-bottom: 25px;
}

.flash-sale-timer {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--flash-sale-timer-color);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.flash-sale-section .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flash-sale-section .product-card {
    background-color: var(--white-color);
    box-shadow: var(--shadow-medium);
}

.flash-sale-section .product-card-content h3 {
    color: var(--text-color);
}

.flash-sale-section .current-price.flash-sale-price {
    color: var(--flash-sale-price-current-light-mode);
}
body.dark-mode .product-card-content .flash-sale-price {
    color: var(--flash-sale-text-color);
}
.flash-sale-section .old-price {
    color: var(--light-text-color);
}
body.dark-mode .flash-sale-section .old-price {
    color: rgba(255, 255, 255, 0.7);
}

.flash-sale-section .add-to-cart-btn {
    background-color: var(--primary-button-color);
}
.flash-sale-section .add-to-cart-btn:hover {
    background-color: var(--primary-button-hover);
}
.flash-sale-section .view-all-flash-sale-btn {
    margin-top: 50px;
    background-color: var(--white-color);
    color: var(--flash-sale-bg-color);
    box-shadow: var(--button-shadow);
}
.flash-sale-section .view-all-flash-sale-btn:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    box-shadow: var(--button-shadow-hover);
}

/*====================================================================
  9. CAROUSEL & COUNTDOWN LOGIC
====================================================================*/
.testimonial-carousel,
.product-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    padding: 0 60px;
    overflow: hidden;
}

.testimonial-cards-wrapper,
.product-cards-wrapper {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.testimonial-card,
.product-cards-wrapper .product-card {
    flex: 0 0 auto;
    width: 380px;
    margin: 0 18px;
    background-color: var(--white-color);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.product-cards-wrapper .product-card {
    padding: 25px;
    height: auto;
    border-radius: 12px;
}

.featured-products-section .product-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, background-color 0.4s ease-out;
}

.featured-products-section .product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-medium);
}

.featured-products-section .product-card-image img {
    transition: transform 0.4s ease-out;
}

.featured-products-section .product-card:hover .product-card-image img {
    transform: scale(1.12);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--light-text-color);
}

.testimonial-card h4 {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.testimonial-card span {
    font-size: 0.95rem;
    color: var(--primary-button-color);
}

.testimonial-card .customer-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-button-color);
    box-shadow: var(--shadow-light);
}

.carousel-btn {
    background: var(--primary-button-color);
    color: var(--white-color);
    border: none;
    padding: 18px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    box-shadow: var(--button-shadow);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    position: absolute;
}

.carousel-btn:hover {
    background-color: var(--primary-button-hover);
    transform: scale(1.15);
    box-shadow: var(--button-shadow-hover);
}
.carousel-btn.prev-btn {
    left: 0;
}
.carousel-btn.next-btn {
    right: 0;
}

/*====================================================================
  10. WHY CHOOSE US SECTION
====================================================================*/
.why-choose-us {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    text-align: center;
}

.feature-item {
    background-color: var(--white-color);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 3.8rem;
    color: var(--primary-button-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.feature-item:hover i {
    color: var(--accent-color);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

/*====================================================================
  11. FAQ SECTION (Accordion)
====================================================================*/
.faq-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.accordion-container {
    max-width: 850px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    background-color: var(--secondary-button-color);
    padding: 22px 30px;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--secondary-button-hover);
}

.accordion-header .fas {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.accordion-header[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}

.accordion-content {
    background-color: var(--white-color);
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out, background-color 0.4s ease;
}
body.dark-mode .accordion-content {
    background-color: var(--dark-mode-card-bg);
}

.accordion-content.active {
    max-height: 500px;
    padding: 20px 30px 30px;
}
.accordion-content p {
    color: var(--light-text-color);
    line-height: 1.7;
}

/*====================================================================
  12. NEWSLETTER SECTION
====================================================================*/
.newsletter-section {
    background: var(--primary-button-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.newsletter-section h2 {
    color: var(--white-color);
    margin-bottom: 25px;
}

.newsletter-section p {
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}
.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 14px 30px;
    background-color: var(--white-color);
    color: var(--primary-button-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--button-shadow);
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
}

/*====================================================================
  13. CONTACT SECTION
====================================================================*/
.contact-section {
    background-color: var(--white-color);
    transition: background-color 0.4s ease;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 320px;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    background-color: var(--bg-color);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-info h3,
.contact-form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: left;
    color: var(--text-color);
}

.contact-info p {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light-text-color);
    font-size: 1.05rem;
}

.contact-info p i {
    color: var(--primary-button-color);
    font-size: 1.2em;
}

.contact-info .social-links {
    margin-top: 35px;
    display: flex;
    gap: 18px;
}

.contact-info .social-links a {
    font-size: 1.6rem;
    color: var(--light-text-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-info .social-links a:hover {
    color: var(--primary-button-color);
    transform: translateY(-3px);
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white-color);
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-color-hue), 60%, 55%, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    width: auto;
    padding: 14px 35px;
}

/*====================================================================
  14. FOOTER
====================================================================*/
.main-footer {
    background-color: var(--footer-bg-color);
    padding: 50px 0 30px;
    border-top: 1px solid var(--footer-border-line-color);
    color: var(--footer-text-color);
    transition: background-color 0.4s ease, border-top 0.4s ease, color 0.4s ease;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col.footer-about {
    flex: 1.5;
    min-width: 300px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--footer-text-color);
    margin-bottom: 25px;
}

.footer-col.footer-about h3 {
    color: var(--primary-button-color);
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--footer-text-color);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--footer-link-hover-color);
}

.footer-col.footer-contact .social-links,
.footer-about .social-links {
    margin-top: 20px;
    display: flex;
    gap: 18px;
}

.footer-col.footer-contact .social-links a,
.footer-about .social-links a {
    font-size: 1.4rem;
    color: var(--footer-social-icon-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-col.footer-contact .social-links a:hover,
.footer-about .social-links a:hover {
    color: var(--primary-button-color);
    transform: translateY(-3px);
}

.footer-newsletter-form-container p {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-newsletter-form {
    display: flex;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.footer-newsletter-form input {
    flex-grow: 1;
    padding: 12px 18px;
    border: none;
    font-size: 1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--footer-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.footer-newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-newsletter-form button {
    padding: 12px 18px;
    background-color: var(--primary-button-color);
    color: var(--white-color);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-newsletter-form button:hover {
    background-color: var(--primary-button-hover);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--footer-border-line-color);
    padding-top: 25px;
    margin-top: 25px;
    color: var(--footer-text-color);
    transition: border-top 0.4s ease, color 0.4s ease;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: inherit;
}

.payment-methods i {
    font-size: 2.2rem;
    margin: 0 10px;
    color: var(--footer-payment-icon-color);
    transition: transform 0.2s ease;
}
.payment-methods i:hover {
    transform: scale(1.1);
}

/*====================================================================
  15. MODAL STYLES (General)
====================================================================*/
/* General modal overlay and animation. */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Active state for modal. */
.modal.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Modal content common styles: background, padding, border-radius, shadow. */
.modal-content {
    background-color: var(--white-color);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    width: 650px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark mode adjustment for modal content shadow. */
body.dark-mode .modal-content {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal heading styling. */
.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-color);
}

/* Close button for modals. */
.close-modal-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for close button. */
.close-modal-btn:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

/*------------------------------------
  Search Modal
------------------------------------*/
.search-modal-content {
    width: 750px;
}

/* Search input group layout. */
.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

/* Search input field styling. */
.search-input-group input {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
/* Focus effect for search input. */
.search-input-group input:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-color-hue), 60%, 55%, 0.2);
}

/* Search button styling. */
.search-input-group button {
    padding: 14px 25px;
    font-size: 1rem;
}

/* Search results container. */
.search-results {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    background-color: var(--bg-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Message for no search results. */
.search-results p {
    text-align: center;
    color: var(--light-text-color);
    font-size: 1.05rem;
}

/* Individual search result item. */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.3s ease;
    border-radius: 5px;
    margin: 5px 0;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Hover effect for search result items. */
.search-result-item:hover {
    background-color: hsla(var(--primary-color-hue), 60%, 55%, 0.05);
}

/* Search result item image. */
.search-result-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* Search result item info (title and price). */
.search-result-info h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.search-result-info span {
    font-weight: 700;
    color: var(--primary-button-color);
    font-size: 1.1rem;
}

/*------------------------------------
  Profile Modal (Highly Modernized)
------------------------------------*/
.profile-modal-content {
    width: 750px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.dark-mode .profile-modal-content {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.profile-content-area {
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 25px 0;
    width: 100%;
    overflow-y: auto;
    padding-right: 15px;
}

.profile-loading-skeleton {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-button-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
    display: none;
}

.profile-details {
    width: 100%;
    text-align: left;
    margin-bottom: 30px;
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-mode .profile-details {
    background-color: #383838;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

.profile-details p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dotted var(--border-color);
}
.profile-details p:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-details strong {
    color: var(--primary-button-color);
    font-weight: 600;
}

.profile-details h4 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--text-color);
    text-align: center;
}

.profile-addresses,
.profile-payment-methods {
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    background-color: var(--bg-color);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 20px;
}

body.dark-mode .profile-addresses,
body.dark-mode .profile-payment-methods {
    background-color: #383838;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

.address-item,
.payment-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
}
.address-item:last-child,
.payment-item:last-child {
    border-bottom: none;
}
.address-item span,
.payment-item span {
    flex-basis: auto;
    margin-right: 10px;
    white-space: nowrap;
}
.address-item span:first-child,
.payment-item span:first-child {
    font-weight: 600;
    color: var(--primary-button-color);
}
.address-item .status-badge,
.payment-item .status-badge {
    margin-left: auto;
}
.profile-addresses .add-new-item-btn,
.profile-payment-methods .add-new-item-btn {
    margin-top: 15px;
    width: auto;
    font-size: 0.9rem;
    padding: 8px 15px;
}


/* Profile orders container with scrollbar. */
.profile-orders {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    background-color: var(--bg-color);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-mode .profile-orders {
    background-color: #383838;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Individual profile order item. */
.profile-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--light-text-color);
    transition: border-color 0.4s ease, background-color 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
}
.profile-order-item:hover {
    background-color: hsla(var(--primary-color-hue), 60%, 55%, 0.05);
    transform: translateX(5px);
}

.profile-order-item:last-child {
    border-bottom: none;
}
/* Ensure text in profile order items is visible. */
.profile-order-item span {
    color: var(--text-color);
}

/* Profile action buttons layout. */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
}

/* Styling for profile action buttons. */
.profile-actions .btn {
    flex-grow: 1;
    min-width: 160px;
    padding: 14px 25px;
    font-size: 1rem;
    border-radius: 10px;
}

/* Login Form in Profile Modal. */
.login-form,
.register-form,
.edit-profile-form {
    width: 100%;
    max-width: 450px;
    margin: 30px auto;
    padding: 25px;
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

body.dark-mode .login-form,
body.dark-mode .register-form,
body.dark-mode .edit-profile-form {
    background-color: #383838;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Form group spacing for login form. */
.login-form .form-group,
.register-form .form-group,
.edit-profile-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}
/* Label for login form inputs. */
.login-form label,
.register-form label,
.edit-profile-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}
/* Input fields for login form. */
.login-form input[type="email"],
.login-form input[type="password"],
.register-form input,
.edit-profile-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white-color);
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}
/* Focus effect for login form inputs. */
.login-form input:focus,
.register-form input:focus,
.edit-profile-form input:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-color-hue), 60%, 55%, 0.2);
}
/* Login button styling. */
.login-form button,
.register-form button,
.edit-profile-form button {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.05rem;
    border-radius: 10px;
}

/*------------------------------------
  Cart & Wishlist Modals
------------------------------------*/
.cart-modal-content,
.wishlist-modal-content {
    width: 750px;
}

/* Containers for cart and wishlist items with scrolling. */
.cart-items,
.wishlist-items {
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    background-color: var(--bg-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Individual cart and wishlist item layout. */
.cart-item,
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: border-color 0.4s ease, background-color 0.2s ease;
    border-radius: 5px;
    margin: 5px 0;
}
/* Hover effect for cart/wishlist items. */
.cart-item:hover,
.wishlist-item:hover {
    background-color: hsla(var(--primary-color-hue), 60%, 55%, 0.02);
}

.cart-item:last-child,
.wishlist-item:last-child {
    border-bottom: none;
}

/* Image container for cart/wishlist items. */
.cart-item-img,
.wishlist-item-img {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-img img,
.wishlist-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details area for cart/wishlist items. */
.cart-item-details,
.wishlist-item-details {
    flex-grow: 1;
}

/* Item title in cart/wishlist. */
.cart-item-details h4,
.wishlist-item-details h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Item price in cart/wishlist. */
.cart-item-details .price,
.wishlist-item-details .price {
    font-weight: 700;
    color: var(--primary-button-color);
    font-size: 1.1rem;
}

/* Quantity control for cart items. */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.cart-item-quantity button {
    background-color: var(--border-color);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.cart-item-quantity button:hover {
    background-color: var(--secondary-button-color);
    color: var(--white-color);
}

.cart-item-quantity input {
    width: 60px;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.05rem;
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Total price for a single item in cart. */
.cart-item-total {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Remove item buttons in cart/wishlist. */
.remove-from-cart-btn,
.remove-from-wishlist-btn {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.remove-from-cart-btn:hover,
.remove-from-wishlist-btn:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

/* Cart summary styling. */
.cart-summary {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Individual summary line in cart. */
.cart-summary .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 1.05rem;
}

/* Total line in cart summary. */
.cart-summary .summary-line.total {
    font-weight: 700;
    font-size: 1.3rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
    transition: border-color 0.4s ease;
}

/* Cart action buttons layout. */
.cart-actions {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

/* Flex grow for cart action buttons. */
.cart-actions .btn {
    flex-grow: 1;
}

/* "Move to Cart" button in wishlist. */
.wishlist-item .move-to-cart-btn {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: auto;
}

.wishlist-item .move-to-cart-btn:hover {
    background-color: var(--accent-hover);
}

/* Positioning for remove from wishlist button. */
.wishlist-item .remove-from-wishlist-btn {
    margin-left: 10px;
}

/* Message for empty cart/wishlist. */
.empty-message {
    text-align: center;
    color: var(--light-text-color);
    padding: 25px;
    font-style: italic;
}

/*------------------------------------
  Info Page Modal
------------------------------------*/
/* Info page modal content styling. */
.info-page-modal-content {
    width: 850px;
    max-height: 90vh;
    padding: 40px;
    text-align: left;
}
/* Info page modal title. */
.info-page-modal-content h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}
/* Info page content area with scrolling. */
.info-page-content {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
    padding-right: 15px;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}
/* Info page content sub-headings. */
.info-page-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-button-color);
}
/* Info page content paragraphs. */
.info-page-content p {
    margin-bottom: 15px;
}
/* Info page content lists. */
.info-page-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}
.info-page-content ul li {
    margin-bottom: 8px;
}

/*------------------------------------
  Product Detail Modal
------------------------------------*/
/* Product detail modal content styling. */
.product-detail-modal-content {
    width: 950px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .product-detail-modal-content {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

/* Product detail content layout. */
.product-detail-content {
    display: flex;
    gap: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-detail-content.active {
    opacity: 1;
}

/* Product detail image container. */
.product-detail-image {
    flex: 1;
    min-width: 350px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* Product detail information area. */
.product-detail-info {
    flex: 1.5;
}

/* Product detail title. */
.product-detail-info h3 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Product detail price. */
.product-detail-info .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-button-color);
    margin-bottom: 25px;
}

/* Product rating display in detail modal. */
.product-rating {
    margin-bottom: 18px;
    color: var(--gold-color);
    font-size: 1.2rem;
}

.product-rating .fas {
    margin-right: 3px;
}

.product-rating .fas.fa-star-half-alt {
    margin-right: 3px;
}

.product-rating span {
    font-size: 1rem;
    color: var(--light-text-color);
    margin-left: 8px;
}

/* Product detail description. */
.product-detail-info .description {
    font-size: 1.05rem;
    color: var(--light-text-color);
    margin-bottom: 30px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Product detail actions layout. */
.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

/* Quantity control for product detail. */
.product-detail-actions .quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-detail-actions .quantity-control button {
    background-color: var(--border-color);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}

.product-detail-actions .quantity-control button:hover {
    background-color: var(--secondary-button-color);
    color: var(--white-color);
}

.quantity-control input {
    width: 70px;
    text-align: center;
    padding: 10px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Category and stock status in product detail. */
.product-detail-info .category,
.product-detail-info .stock-status {
    font-size: 1rem;
    color: var(--light-text-color);
    margin-bottom: 12px;
}

.product-detail-info .stock-status.out-of-stock {
    color: var(--error-color);
    font-weight: 600;
}

/*------------------------------------
  Quick View Modal (Highly Modernized)
------------------------------------*/
.quick-view-content {
    width: 800px;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .quick-view-content {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.quick-view-details {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-mode .quick-view-details {
    background-color: #383838;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

.quick-view-image {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}
.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quick-view-info {
    flex-grow: 1;
    text-align: left;
}
.quick-view-info h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: left;
    color: var(--text-color);
}
.quick-view-info .product-rating {
    margin-bottom: 15px;
}
.quick-view-info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-button-color);
    margin-bottom: 20px;
}
.quick-view-info .description {
    font-size: 1rem;
    color: var(--light-text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}
.quick-view-info .category,
.quick-view-info .stock-status {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--light-text-color);
}
.quick-view-info .stock-status.out-of-stock {
    color: var(--error-color);
    font-weight: 600;
}

.quick-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}
.quick-view-actions .btn {
    flex-grow: 1;
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 10px;
}

/*====================================================================
  16. CHECKOUT PAGE
====================================================================*/
.checkout-page {
    background-color: var(--bg-color);
    padding: 50px 0;
    min-height: calc(100vh - var(--main-header-height, 80px) - var(--main-footer-height, 250px));
    display: none;
    transition: background-color 0.4s ease;
}

.checkout-page.active {
    display: block;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}

.checkout-header h2 {
    text-align: left;
    margin-bottom: 0;
    font-size: 2.2rem;
}

.back-to-cart-btn {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.checkout-form-section,
.checkout-summary-section {
    flex: 1;
    min-width: 350px;
    padding: 35px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.checkout-form-section h3,
.checkout-summary-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.shipping-form .form-group {
    margin-bottom: 18px;
}

.shipping-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.shipping-form input,
.shipping-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    color: var(--text-color);
    background-color: var(--white-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.shipping-form input:focus,
.shipping-form select:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 3px hsla(var(--primary-color-hue), 60%, 55%, 0.2);
}

.shipping-form button {
    margin-top: 25px;
    width: 100%;
    padding: 14px 28px;
}

.checkout-order-items {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    background-color: var(--bg-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.checkout-order-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: border-color 0.4s ease;
}

.checkout-order-item:last-child {
    border-bottom: none;
}

.checkout-order-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkout-item-details {
    flex-grow: 1;
}

.checkout-item-details h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.checkout-item-details p {
    font-size: 1rem;
    color: var(--light-text-color);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--primary-button-color);
    font-size: 1.15rem;
}

.checkout-summary {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 25px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.checkout-summary .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1.05rem;
}

.checkout-summary .summary-line.total {
    font-weight: 700;
    font-size: 1.3rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
    transition: border-color 0.4s ease;
}

.payment-methods-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    transition: border-top 0.4s ease;
}

.payment-options label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.05rem;
}

.payment-options input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    vertical-align: middle;
}

.payment-methods-section button {
    margin-top: 25px;
    width: 100%;
    padding: 14px 28px;
}

/*====================================================================
  17. ORDER TRACKING SECTION (Enhanced Timeline)
====================================================================*/
.order-tracking-section {
    background-color: var(--bg-color);
    padding: 80px 0;
    transition: background-color 0.4s ease;
    text-align: center;
}

.order-tracking-section h2 {
    margin-bottom: 50px;
}

.tracking-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background-color: var(--white-color);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

body.dark-mode .tracking-form-container {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.order-tracking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

.order-tracking-form p {
    margin-bottom: 0;
    color: var(--light-text-color);
    font-size: 1.05rem;
}

.order-tracking-form .form-group {
    margin-bottom: 0;
    text-align: left;
}

.order-tracking-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.order-tracking-form input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white-color);
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

.order-tracking-form input[type="text"]:focus {
    border-color: var(--primary-button-color);
    box-shadow: 0 0 0 4px hsla(var(--primary-color-hue), 60%, 55%, 0.3);
}

.order-tracking-form button {
    width: 100%;
    margin-top: 0;
    padding: 15px 28px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.order-tracking-results {
    margin-top: 0;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background-color: var(--bg-color);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

body.dark-mode .order-tracking-results {
    background-color: var(--dark-mode-card-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

.order-tracking-results p {
    color: var(--light-text-color);
    margin: 0;
    font-size: 1.05rem;
}

.order-tracking-results .order-found-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--success-color);
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.order-tracking-results .tracking-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    align-items: flex-start;
}

.order-tracking-results .tracking-summary {
    flex: 1;
    min-width: 320px;
    background-color: var(--white-color);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
}

body.dark-mode .order-tracking-results .tracking-summary {
    background-color: #383838;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.order-tracking-results .tracking-summary p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(var(--border-color), 0.5);
}
.order-tracking-results .tracking-summary p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-tracking-results .tracking-summary strong {
    color: var(--primary-button-color);
    font-weight: 700;
    flex-basis: auto;
    text-align: right;
}
.order-tracking-results .tracking-summary p span:first-child {
    flex-basis: auto;
    text-align: left;
    margin-right: 10px;
}

.order-tracking-results .tracking-items {
    margin-top: 25px;
    width: 100%;
}

.order-tracking-results .tracking-items h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.order-tracking-results .tracking-items ul {
    list-style: none;
    padding-left: 0;
    color: var(--light-text-color);
    font-size: 1rem;
}

.order-tracking-results .tracking-items ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white-color);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .order-tracking-results .tracking-items ul li {
    background-color: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.order-tracking-results .tracking-items ul li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.tracking-status-timeline {
    flex: 1;
    min-width: 350px;
    margin-top: 0;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 18px;
    box-shadow: var(--shadow-light);
    text-align: left;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

body.dark-mode .tracking-status-timeline {
    background-color: #383838;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.tracking-status-timeline h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
}

.tracking-status-timeline ul {
    list-style: none;
    padding: 0;
    position: relative;
    padding-left: 30px;
}

.tracking-status-timeline ul::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    z-index: 0;
}
body.dark-mode .tracking-status-timeline ul::before {
    background-color: rgba(255, 255, 255, 0.15);
}

.tracking-status-timeline ul li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: none;
    gap: 20px;
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
    margin: 5px 0;
}

.tracking-status-timeline ul li:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--light-text-color);
    border: 4px solid var(--white-color);
    margin-top: 0;
    z-index: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
body.dark-mode .timeline-dot {
    border-color: var(--dark-mode-card-bg);
}

.timeline-dot.active {
    background-color: var(--primary-button-color);
    border-color: var(--primary-button-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-button-color);
}

.timeline-dot.active.status-placed {
    background-color: #2F80ED;
    border-color: #2F80ED;
}
.timeline-dot.active.status-processed {
    background-color: #F2994A;
    border-color: #F2994A;
}
.timeline-dot.active.status-shipped {
    background-color: #27AE60;
    border-color: #27AE60;
}
.timeline-dot.active.status-in-transit {
    background-color: #9B59B6;
    border-color: #9B59B6;
}
.timeline-dot.active.status-out-for-delivery {
    background-color: #EB5757;
    border-color: #EB5757;
}
.timeline-dot.active.status-delivered {
    background-color: var(--success-color);
    border-color: var(--success-color);
}
.timeline-dot.active.status-cancelled {
    background-color: var(--error-color);
    border-color: var(--error-color);
}

.timeline-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.timeline-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}
.timeline-content .status-text {
    font-weight: 700;
    color: var(--primary-button-color);
    font-size: 1.1rem;
}
.timeline-content .location-text {
    color: var(--light-text-color);
}
.timeline-content .date-text {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

.tracking-status-timeline ul li:hover {
    background-color: hsla(var(--primary-color-hue), 60%, 55%, 0.05);
    transform: translateX(5px);
}

/*------------------------------------
  Order Detail Modal (New)
------------------------------------*/
.order-detail-modal-content {
    width: 900px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    text-align: left;
}

body.dark-mode .order-detail-modal-content {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.order-detail-content {
    display: none;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-mode .order-detail-content {
    background-color: #383838;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

.order-detail-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.order-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}
body.dark-mode .order-detail-summary {
    background-color: var(--dark-mode-card-bg);
}

.order-detail-summary p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.order-detail-summary p strong {
    color: var(--primary-button-color);
}

.order-detail-items h4 {
    margin-top: 0;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.order-detail-items ul {
    list-style: none;
    padding: 0;
}

.order-detail-items ul li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}
.order-detail-items ul li:last-child {
    border-bottom: none;
}

.order-detail-items ul li img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.item-info {
    flex-grow: 1;
}

.item-info h5 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.item-info p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin: 0;
}

.item-price {
    font-weight: 700;
    color: var(--primary-button-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/*------------------------------------
  Edit Profile Modal (New)
------------------------------------*/
.edit-profile-modal-content,
.register-modal-content {
    width: 650px;
    padding: 40px;
}
.edit-profile-modal-content h3,
.register-modal-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.edit-profile-form-area,
.register-form-area {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.edit-profile-form,
.register-form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.edit-profile-form .form-group,
.register-form .form-group {
    margin-bottom: 20px;
}

.edit-profile-form button,
.register-form button {
    margin-top: 10px;
}

.register-form .password-mismatch-error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}


/*====================================================================
  18. UTILITY CLASSES (Rating, Status Badges)
====================================================================*/

.product-rating-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.product-rating-section h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}
.product-rating-section p {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.star-rating {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--gold-color);
    cursor: pointer;
}

.star-rating i {
    margin: 0 2px;
    transition: transform 0.1s ease-in-out;
}
.star-rating i:hover {
    transform: scale(1.1);
}
.product-rating-section .star-rating .fas {
    color: var(--gold-color);
}
.product-rating-section .star-rating .far {
    color: var(--light-text-color);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--white-color);
    white-space: nowrap;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}
.status-badge.delivered {
    background-color: var(--success-color);
}
.status-badge.shipped {
    background-color: var(--secondary-button-color);
}
.status-badge.processing {
    background-color: var(--flash-sale-bg-color);
}
.status-badge.cancelled {
    background-color: var(--error-color);
}

/*====================================================================
  19. RESPONSIVE DESIGN (Media Queries)
====================================================================*/
/* Large devices (laptops, desktops) */
@media (min-width: 1201px) {
    /* No specific overrides needed for larger screens if base is designed for desktop */
}

/* Medium devices (tablets, small laptops) */
@media (max-width: 992px) {
    /* Header and Navigation */
    .navbar .nav-links {
        display: none; /* Hide main nav links, rely on mobile sidebar */
    }
    .navbar .nav-icons {
        margin-left: auto; /* Push icons to the right if nav-links disappear */
        gap: 10px;
    }
    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }
    .navbar .logo {
        margin-right: auto; /* Ensure logo is on the left */
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* General Sections */
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min-width */
        gap: 25px;
    }
    .product-card-image {
        height: 200px; /* Slightly smaller image height */
    }
    .product-card-content {
        padding: 20px;
    }

    /* Category Grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 25px;
    }
    .category-card i {
        font-size: 3rem;
    }
    .category-card h3 {
        font-size: 1.2rem;
    }

    /* Why Choose Us Section */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    .feature-item i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    .feature-item h3 {
        font-size: 1.25rem;
    }

    /* Testimonials Carousel */
    .testimonial-carousel {
        padding: 0 40px;
    }
    .testimonial-card {
        width: 300px;
        margin: 0 15px;
        padding: 25px;
    }
    .testimonial-card .customer-image {
        width: 70px;
        height: 70px;
    }

    /* FAQ Section */
    .accordion-header {
        font-size: 1.05rem;
        padding: 18px 25px;
    }
    .accordion-content {
        padding: 0 25px;
    }
    .accordion-content.active {
        padding: 15px 25px 25px;
    }

    /* Newsletter Section */
    .newsletter-section h2 {
        font-size: 2.2rem;
    }
    .newsletter-section p {
        font-size: 1rem;
    }
    .newsletter-form {
        max-width: 500px;
    }
    .newsletter-form input {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    .newsletter-form button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    .contact-info,
    .contact-form-container {
        min-width: unset;
        width: 100%;
        padding: 30px;
    }
    .contact-info h3, .contact-form-container h3 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-col {
        min-width: 100%;
    }
    .footer-col.footer-about h3,
    .footer-col h3 {
        text-align: center;
    }
    .footer-col .social-links,
    .footer-newsletter-form {
        justify-content: center;
    }

    /* Modals (General) */
    .modal-content {
        width: 95%;
        padding: 30px;
    }
    .modal-content h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .close-modal-btn {
        font-size: 1.5rem;
        top: 12px;
        right: 12px;
    }

    /* Product Detail Modal */
    .product-detail-modal-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .product-detail-image,
    .product-detail-info {
        min-width: unset;
        width: 100%;
    }
    .product-detail-info h3 {
        text-align: center;
        font-size: 2.2rem;
    }
    .product-detail-info .price {
        font-size: 1.8rem;
    }
    .product-detail-info .description {
        font-size: 1rem;
    }
    .quantity-control {
        width: 100%;
        justify-content: center;
    }
    .product-detail-actions .btn {
        width: 100%;
    }
    .product-rating-section h4 {
        font-size: 1.3rem;
    }
    .star-rating {
        font-size: 1.5rem;
    }

    /* Quick View Modal */
    .quick-view-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .quick-view-image {
        width: 100%;
        height: 250px;
    }
    .quick-view-info h3 {
        text-align: center;
        font-size: 1.8rem;
    }
    .quick-view-info .price {
        font-size: 1.5rem;
    }
    .quick-view-info .description {
        font-size: 0.95rem;
    }
    .quick-view-actions {
        flex-direction: column;
        gap: 10px;
    }
    .quick-view-actions .btn {
        width: 100%;
    }

    /* Cart & Wishlist Modals */
    .cart-modal-content,
    .wishlist-modal-content {
        width: 95%;
        padding: 25px;
    }
    .cart-item,
    .wishlist-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
    .cart-item-details,
    .wishlist-item-details {
        text-align: center;
    }
    .cart-item-total,
    .wishlist-item .move-to-cart-btn,
    .remove-from-cart-btn,
    .remove-from-wishlist-btn {
        margin-left: unset;
    }
    .remove-from-cart-btn,
    .remove-from-wishlist-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    .cart-item-quantity {
        justify-content: center;
    }

    /* Checkout Page */
    .checkout-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .checkout-header h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    .back-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
    .checkout-container {
        flex-direction: column;
        gap: 30px;
    }
    .checkout-form-section,
    .checkout-summary-section {
        width: 100%;
        min-width: unset;
        padding: 30px;
    }
    .checkout-form-section h3,
    .checkout-summary-section h3 {
        font-size: 1.6rem;
    }
    .shipping-form input,
    .shipping-form select,
    .payment-methods-section button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    /* Order Tracking Section */
    .tracking-form-container {
        padding: 30px;
        gap: 20px;
    }
    .order-tracking-results {
        padding: 30px;
    }
    .order-tracking-results .order-found-title {
        font-size: 2rem;
    }
    .order-tracking-results .tracking-summary p {
        font-size: 1rem;
    }
    .order-tracking-results .tracking-items h4, .tracking-status-timeline h4 {
        font-size: 1.6rem;
    }
    .order-tracking-form label {
        font-size: 0.9rem;
    }
    .order-tracking-form input[type="text"] {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .order-tracking-form button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .tracking-status-timeline ul::before {
        left: 15px;
    }
    .timeline-dot {
        border-width: 3px;
    }
    .tracking-status-timeline ul li {
        padding: 12px 0;
        gap: 15px;
        padding-left: 20px;
    }
    .timeline-content .status-text {
        font-size: 1rem;
    }
    .timeline-content .location-text, .timeline-content .date-text {
        font-size: 0.9rem;
    }
}

/* Smallest devices (very small phones) - Tambahan untuk memastikan penyesuaian yang lebih agresif */
@media (max-width: 380px) {
    /* Header dan navigasi */
    .main-header .navbar {
        padding: 0 10px;
    }
    .navbar .logo {
        font-size: 1.3rem;
        margin-right: 10px;
    }
    .navbar .nav-icons {
        gap: 5px;
    }
    .navbar .nav-icons .icon-btn {
        font-size: 1rem;
    }
    .cart-count, .wishlist-count {
        font-size: 0.65rem;
        padding: 2px 6px;
        min-width: 18px;
        top: -4px;
        right: -4px;
    }
    .mobile-menu-toggle {
        font-size: 1.5rem;
        margin-left: 10px;
    }
    .mobile-sidebar {
        width: 250px;
        padding: 15px;
    }
    .sidebar-header .logo {
        font-size: 1.5rem;
    }
    .sidebar-header .close-btn {
        font-size: 1.5rem;
    }

    /* Sidebar navigation links (untuk menampung lebih banyak link) */
    .sidebar-nav-links {
        gap: 8px;
    }
    .sidebar-nav-links li a {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    .sidebar-icons {
        padding-top: 15px;
    }
    .sidebar-icons .icon-btn {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }
    .hero-section {
        padding: 80px 0;
        min-height: 380px;
    }

    /* General Sections */
    section {
        padding: 30px 0;
    }
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    /* Product Grid & Card */
    .product-grid {
        gap: 15px;
    }
    .product-card {
        padding: 15px;
    }
    .product-card-image {
        height: 160px; /* Gambar produk lebih mini */
    }
    .product-card-content h3 {
        font-size: 1rem;
        min-height: 2.6em;
        margin-bottom: 8px;
    }
    .product-card-content .product-prices p {
        font-size: 0.9rem;
    }
    .product-card-content .product-rating {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .product-card-content .product-rating span {
        font-size: 0.8rem;
    }
    .product-card-actions {
        gap: 8px;
    }
    .product-card .add-to-cart-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    .product-card .add-to-wishlist-btn,
    .product-card .quick-view-btn {
        padding: 6px 8px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 25px;
    }

    /* Category Grid */
    .category-card {
        padding: 20px;
    }
    .category-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    .category-card h3 {
        font-size: 1.05rem;
    }

    /* Flash Sale Section */
    .flash-sale-section h2 {
        font-size: 1.8rem;
    }
    .flash-sale-timer {
        font-size: 1.5rem;
    }

    /* Testimonials Carousel */
    .testimonial-carousel {
        padding: 0 10px;
        gap: 10px;
    }
    .testimonial-card {
        width: 250px;
        margin: 0 8px;
        padding: 15px;
    }
    .testimonial-card p {
        font-size: 0.9rem;
    }
    .testimonial-card h4 {
        font-size: 1rem;
    }
    .testimonial-card .customer-image {
        width: 60px;
        height: 60px;
    }
    .carousel-btn {
        font-size: 1rem;
        padding: 10px 8px;
    }

    /* Why Choose Us Section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feature-item {
        padding: 25px;
    }
    .feature-item i {
        font-size: 2.5rem;
    }
    .feature-item h3 {
        font-size: 1.1rem;
    }
    .feature-item p {
        font-size: 0.85rem;
    }

    /* FAQ Section */
    .accordion-header {
        font-size: 0.95rem;
        padding: 12px 18px;
    }
    .accordion-content.active {
        padding: 8px 18px 18px;
    }
    .accordion-content p {
        font-size: 0.9rem;
    }

    /* Newsletter Section */
    .newsletter-section h2 {
        font-size: 1.6rem;
    }
    .newsletter-section p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    .newsletter-form input,
    .newsletter-form button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Contact Section */
    .contact-info h3, .contact-form-container h3 {
        font-size: 1.4rem;
    }
    .contact-info p, .contact-form label {
        font-size: 0.85rem;
    }
    .contact-form input, .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .contact-form button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Footer */
    .main-footer {
        padding: 25px 0 15px;
    }
    .footer-col h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .footer-col p, .footer-col ul li a {
        font-size: 0.8rem;
    }
    .payment-methods i {
        font-size: 1.8rem;
        margin: 0 5px;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-content {
        padding: 20px;
    }
    .modal-content h3 {
        font-size: 1.5rem;
    }
    .search-input-group input, .search-input-group button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .search-result-item img {
        width: 40px;
        height: 40px;
    }
    .search-result-info h4 {
        font-size: 0.9rem;
    }
    .search-result-info span {
        font-size: 0.8rem;
    }

    /* Cart & Wishlist Modals */
    .cart-item-img, .wishlist-item-img {
        width: 60px;
        height: 60px;
    }
    .cart-item-details h4, .wishlist-item-details h4 {
        font-size: 0.9rem;
    }
    .cart-item-details .price, .wishlist-item-details .price {
        font-size: 0.85rem;
    }
    .cart-item-quantity button {
        padding: 3px 6px;
        font-size: 0.9rem;
    }
    .cart-item-quantity input {
        width: 40px;
        font-size: 0.8rem;
    }
    .cart-item-total {
        font-size: 1rem;
    }
    .remove-from-cart-btn, .remove-from-wishlist-btn {
        font-size: 1rem;
    }

    /* Product Detail Modal */
    .product-detail-content {
        gap: 20px;
        padding: 15px;
    }
    .product-detail-image {
        min-width: unset;
        width: 100%;
        height: 200px;
    }
    .product-detail-image img {
        height: 100%;
    }
    .product-detail-info h3 {
        font-size: 1.6rem;
    }
    .product-detail-info .price {
        font-size: 1.3rem;
    }
    .product-detail-info .description {
        font-size: 0.85rem;
    }
    .quantity-control button {
        padding: 6px 10px;
        font-size: 1rem;
    }
    .quantity-control input {
        width: 50px;
        font-size: 0.9rem;
    }
    .product-detail-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Quick View Modal */
    .quick-view-image {
        height: 200px;
    }
    .quick-view-info h3 {
        font-size: 1.6rem;
    }
    .quick-view-info .price {
        font-size: 1.3rem;
    }
    .quick-view-info .description {
        font-size: 0.85rem;
    }
    .quick-view-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Checkout Page */
    .checkout-header {
        padding: 15px 0;
    }
    .checkout-header h2 {
        font-size: 1.4rem;
    }
    .back-to-cart-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    .checkout-form-section, .checkout-summary-section {
        padding: 20px;
    }
    .checkout-form-section h3, .checkout-summary-section h3 {
        font-size: 1.4rem;
    }
    .shipping-form label {
        font-size: 0.85rem;
    }
    .shipping-form input, .shipping-form select, .payment-methods-section button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Order Tracking Section */
    .order-tracking-results .order-found-title {
        font-size: 1.8rem;
    }
    .order-tracking-results .tracking-summary p {
        font-size: 0.9rem;
    }
    .order-tracking-results .tracking-items h4, .tracking-status-timeline h4 {
        font-size: 1.4rem;
    }
    .order-tracking-form label {
        font-size: 0.9rem;
    }
    .order-tracking-form input[type="text"] {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .order-tracking-form button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .tracking-status-timeline ul::before {
        left: 10px;
    }
    .timeline-dot {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }
    .tracking-status-timeline ul li {
        padding: 10px 0;
        gap: 10px;
        padding-left: 20px;
    }
    .timeline-content .status-text {
        font-size: 1rem;
    }
    .timeline-content .location-text, .timeline-content .date-text {
        font-size: 0.85rem;
    }
}