/**
 * =====================================================
 * FILE: assets/css/style.css
 * Styling untuk Frontend (Customer)
 * eLHa Moslem Store
 * =====================================================
 */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #1a2a4d;
    --primary-dark: #0f1621;
    --primary-light: #2d4a7a;
    --secondary-color: #2D5F5B;
    --secondary-dark: #1a3a37;
    --gold-color: #D4AF37;
    --gold-dark: #b8860b;
    --gold-light: #f4d470;
    --accent-color: #00b4d8;
    --success-color: #06d6a0;
    --warning-color: #f4a261;
    --danger-color: #e76f51;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --lighter-color: #ffffff;
    --gray-color: #6c757d;
    --gray-light: #adb5bd;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    
    /* Enhanced color palettes for consistent theming */
    --primary-rgb: 26, 42, 77;
    --gold-rgb: 212, 175, 55;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER ==================== */
.header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header:hover {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #D4AF37;
    padding: 12px 0;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-top span {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    color: #D4AF37;
    font-weight: 500;
}

.header-top span i {
    font-size: 12px;
    opacity: 0.95;
}

.header-top a {
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    font-weight: 600;
    position: relative;
}

.header-top a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: width var(--transition-fast);
}

.header-top a:hover {
    color: var(--gold-color);
}

.header-top a:hover::after {
    width: 100%;
}

.header-main {
    padding: 18px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-icon {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
    background: #D4AF37;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    background: #fafafa;
    box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 42, 77, 0.1), var(--shadow-md);
    background: #fff;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: var(--text-color);
    transition: var(--transition-fast);
    font-weight: 500;
}

.search-form input::placeholder {
    color: #aaa;
    transition: var(--transition-fast);
}

.search-form:focus-within input::placeholder {
    color: #ccc;
}

.search-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 14px 32px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-form button:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(26, 42, 77, 0.25);
}

.search-form button:active {
    transform: translateX(0) scale(0.98);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-color);
    font-size: 12px;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-action i {
    font-size: 22px;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-action:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.header-action:hover i {
    transform: scale(1.15);
    color: var(--primary-dark);
}

.header-action:hover span {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #E8A83B, #B8860B);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(232, 168, 59, 0.35);
    animation: cartPulse 0.5s ease-in-out;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Navigation */
.nav-main {
    background: linear-gradient(180deg, var(--light-color) 0%, rgba(250, 250, 250, 0.5) 100%);
    border-top: 1px solid #e8e8e8;
    position: relative;
}

.nav-main::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e8e8, transparent);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 26px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu > li > a:hover::before,
.nav-menu > li > a.active::before {
    transform: scaleX(1);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

.nav-menu > li > a i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover i {
    transform: scale(1.2);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.nav-menu li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 13px;
    color: var(--text-color);
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.nav-dropdown a:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
    color: var(--primary-color);
    padding-left: 28px;
}

.nav-dropdown a:hover::before {
    transform: scaleY(1);
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown i {
    color: var(--primary-color);
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-dropdown a:hover i {
    transform: translateX(2px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #D4AF37;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 0.8s ease-out;
}

.hero-content h2 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #D4AF37;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
    color: #D4AF37;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
    z-index: 0;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:active {
    transform: scale(0.98);
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #D4AF37;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(26, 42, 77, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 42, 77, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: #000;
    border-color: var(--gold-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    text-align: right;
    animation: slideInRight 0.8s ease-out;
}

.hero-image img {
    max-width: 400px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.hero-image:hover img {
    transform: translateY(-10px);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== CATEGORIES SECTION ==================== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-color);
    font-size: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    border: 2px solid #f0f0f0;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.category-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #D4AF37;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.category-card .count {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== PRODUCT CARD ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #e0e0e0;
}

.product-card .badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.product-card .badge {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.product-card .badge.new {
    background: linear-gradient(135deg, var(--primary-color), #2d4a7a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 42, 77, 0.25);
}

.product-card .badge.sale {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.product-card .badge.featured {
    background: linear-gradient(135deg, var(--gold-color), #f4d470);
    color: #000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    font-weight: 800;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.product-card:hover .product-actions {
    transform: translateX(-50%) translateY(0);

    opacity: 1;
}

.product-actions button,
.product-actions a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 18px;
}

.product-actions button:hover,
.product-actions a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(26, 42, 77, 0.3);
}

.product-info {
    padding: 18px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: var(--transition-fast);
    flex-grow: 1;
}

.product-name a {
    color: var(--text-color);
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.product-price .current {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price .old {
    font-size: 13px;
    color: var(--gray-light);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f5f5f5;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--gold-color));
    transform: scaleY(0);
    transition: transform var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #D4AF37;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(26, 42, 77, 0.25);
    transition: var(--transition);
}

.feature-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(26, 42, 77, 0.35);
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.feature-item:hover h4 {
    color: var(--primary-color);
}

.feature-item p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #D4AF37;
    padding: 80px 0 0;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Footer About Section */
.footer-about {
    animation: fadeInUp 0.8s ease-out;
}

.footer-about .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.footer-about .logo:hover {
    transform: translateX(5px);
}

.footer-about .logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1.2;
    margin: 0;
}

.footer-about .logo-text span {
    font-size: 12px;
    color: #747171;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-about p {
    font-size: 14px;
    color: #D4AF37;
    margin-bottom: 25px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    transition: var(--transition);
    border: 2px solid rgba(212, 175, 55, 0.3);
    font-size: 18px;
    font-weight: 600;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: #000;
    border-color: var(--gold-color);
    transform: translateY(-4px) rotate(10deg);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

/* Footer Widgets */
.footer-widget {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.footer-widget:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-widget:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-widget:nth-child(4) {
    animation-delay: 0.3s;
}

.footer-widget h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #D4AF37;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-color), transparent);
    border-radius: 2px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 14px;
    transition: var(--transition);
}

.footer-widget ul li a {
    font-size: 14px;
    color: #D4AF37;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.footer-widget ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: width var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-widget ul li a:hover::before {
    width: 100%;
}

.footer-widget ul li i {
    width: 20px;
    text-align: center;
    color: #D4AF37;
    opacity: 0.9;
    transition: var(--transition);
    font-size: 16px;
    flex-shrink: 0;
}

.footer-widget ul li a:hover i {
    color: #fff;
    transform: scale(1.2) rotate(10deg);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: #D4AF37;
    margin: 0;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.footer-bottom a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: width var(--transition-fast);
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: var(--light-color);
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #D4AF37;
    padding: 40px;
    text-align: center;
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 14px;
}

.auth-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-auth:hover {
    background: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    padding: 25px 40px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--gray-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .header-search {
        display: none;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header Responsive */
    .header-top {
        display: none;
    }
    
    .header-main .container {
        gap: 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text span {
        font-size: 10px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-action span {
        display: none;
    }
    
    .header-action i {
        font-size: 20px;
    }
    
    /* Hamburger Menu */
    .hamburger-menu {
        display: flex;
    }
    
    /* Navigation Mobile */
    .nav-main {
        position: fixed;
        left: 0;
        top: 74px;
        width: 100%;
        height: calc(100vh - 74px);
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .nav-main.active {
        max-height: 100vh;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        padding: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu > li > a:hover {
        background: var(--light-color);
    }
    
    .nav-menu > li.has-dropdown > a::after {
        content: '›';
        font-size: 24px;
        color: var(--primary-color);
    }
    
    .nav-menu > li.has-dropdown.active > a::after {
        transform: rotate(90deg);
    }
    
    /* Mobile Dropdown */
    .nav-dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        background: #f8f9fa;
    }
    
    .nav-menu > li.active .nav-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .nav-dropdown a {
        padding: 12px 20px 12px 40px;
        font-size: 13px;
    }
    
    /* Grid layouts mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price .current {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Forms Mobile */
    .form-row {
        gap: 10px;
    }
    
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px; /* Prevent zoom on mobile */
    }
    
    /* Buttons Mobile */
    button,
    .btn,
    .btn-auth,
    .btn-checkout {
        min-height: 45px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    /* General */
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 22px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* Header */
    .header-main {
        padding: 10px 0;
    }
    
    .header-main .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hamburger-menu {
        margin-left: auto;
    }
    
    /* Hero Section */
    .hero-content h2 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .btn-hero {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Section Title */
    .section-title h2 {
        font-size: 20px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        padding-top: 100%;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .product-price .current {
        font-size: 14px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        min-height: 120px;
    }
    
    .category-card h3 {
        font-size: 16px;
    }
    
    /* Checkout & Forms */
    .checkout-container {
        flex-direction: column;
    }
    
    .checkout-section {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px !important;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    /* Tables */
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    /* Buttons */
    .btn,
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .button-group {
        display: flex;
        gap: 10px;
    }
    
    .button-group .btn {
        flex: 1;
    }
    
    /* Cart */
    .cart-container {
        flex-direction: column-reverse;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Card/Modal */
    .auth-card,
    .checkout-section,
    .payment-card {
        border-radius: 8px;
        padding: 20px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    /* Status Badge */
    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Summary/Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Spacing utilities */
    .section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    /* Extra small adjustments */
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 20px !important;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    h3 {
        font-size: 16px !important;
    }
    
    /* Single column everything */
    .row,
    [class*="grid"],
    .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Hide certain elements on very small screens */
    .no-mobile {
        display: none;
    }
}