html {
    font-size: clamp(14px, 1.2vw + 8px, 18px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #F9F9F9;
    --bg-secondary: #f0f0f0;
    --bg-card: #ffffff;
    --bg-hover: #e8e8e8;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --accent: #D4AF37;
    --accent-hover: #A84828;
    --border: #d4d4d4;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --gold: #D4AF37;
    --gold-light: #D97A52;
    --gold-dark: #A84828;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-small {
    padding: 8px 14px;
    font-size: 11px;
}

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-primary);
    padding: 6px 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-main {
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 6px 10px;
    white-space: nowrap;
    position: relative;
    display: inline-block;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav a:hover {
    color: #D4AF37;
    transform: translateY(-2px);
}

.header-nav a:hover::after {
    width: 80%;
}

.header-nav {
    display: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: none;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    border-radius: 4px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

.header-icons {
    display: flex;
    gap: 8px;
}

.header-icon {
    position: relative;
    padding: 8px;
    color: var(--text-primary);
    font-size: 18px;
}

.header-icon:hover {
    color: var(--text-secondary);
}

.cart-count, .wishlist-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav {
    padding: 10px 0;
    border-top: 1px solid var(--border);
    display: none;
}

.nav-inner {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 4px 8px;
}

.nav a:hover, .nav a.active {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-profile {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 20px;
    color: #fff;
}

.mobile-nav-profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}

.mobile-nav-close:hover {
    opacity: 1;
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-user span {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-nav-actions {
    display: flex;
    justify-content: space-around;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 11px;
}

.mobile-nav-action-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gold);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.mobile-nav-menu {
    padding: 8px 0;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-menu a:hover {
    background: var(--bg-secondary);
}

.mobile-nav-menu a i {
    width: 20px;
    text-align: center;
    color: var(--gold);
    font-size: 15px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
}

.mobile-search {
    padding: 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-search input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 4px;
}

.hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1490578474895-699cd4e2cf59?w=1920') center/cover;
    opacity: 0.25;
}

.hero-content {
    max-width: 100%;
    padding: 0 16px;
}

.hero-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    display: block;
    color: var(--text-secondary);
}

.hero p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 100%;
}

.offer-banner {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 24px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.offer-banner h3 {
    font-size: 1.375rem;
    margin-bottom: 4px;
}

.offer-banner p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.section {
    padding: 24px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    height: 120px;
    background: var(--bg-card);
    overflow: hidden;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.category-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1;
}

.category-info h3 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    font-weight: 600;
}

.category-info span {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

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

.product-card {
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover {
    color: inherit;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-quick-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: var(--gold);
    color: #000;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-action {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 12px;
}

.product-action:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.product-info {
    padding: 10px 10px 12px;
}

.product-category {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.product-rating .star {
    color: #f59e0b;
    font-size: 0.6875rem;
}

.product-rating .star.empty {
    color: #d4d4d4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

.product-price .add-btn {
    margin-left: auto;
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
}

.product-price .add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-original {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-discount {
    font-size: 10px;
    color: var(--success);
}

.product-sizes {
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-secondary);
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-top {
    padding: 32px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-brand .logo {
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.footer-column h4 {
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.footer-contact i {
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
    margin-top: 2px;
}

.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.filter-bar {
    background: var(--bg-secondary);
    padding: 12px 0;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-bar-inner {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    min-width: max-content;
}

.filter-btn {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Product Detail Mobile */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-gallery img {
    height: 300px;
}

.main-image-container {
    position: relative;
}

.thumbnail-gallery {
    display: flex;
    gap: 8px;
}

.thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--gold) !important;
}

@media (max-width: 768px) {
    .main-image-container img {
        height: 300px !important;
    }
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    cursor: pointer;
}

.size-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    font-size: 13px;
}

.size-option.selected span {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #000 !important;
}

/* Cart Mobile */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Checkout Mobile */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.payment-option {
    padding: 14px;
}

.payment-option strong {
    font-size: 13px;
}

.payment-option p {
    font-size: 11px;
}

/* Account Mobile */
.account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Contact Mobile */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Responsive for larger screens */
@media (min-width: 480px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        height: 120px;
    }
}

@media (min-width: 640px) {
    .header-top {
        font-size: 12px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .category-card {
        height: 150px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-top {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .header-main {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 26px;
        letter-spacing: 3px;
    }
    
    .search-bar {
        display: block;
    }
    
    .header-icons {
        gap: 12px;
    }
    
    .header-nav {
        display: flex;
    }
    
    .header-icon {
        font-size: 20px;
        padding: 8px;
    }
    
    .cart-count, .wishlist-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .nav {
        display: block;
        padding: 12px 0;
    }
    
    .nav-inner {
        gap: 24px;
    }
    
    .nav a {
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.625rem;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .offer-banner {
        padding: 32px 0;
    }
    
    .offer-banner h3 {
        font-size: 28px;
    }
    
    .section {
        padding: 32px 0;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .category-card {
        height: 200px;
    }
    
    .category-info h3 {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-category {
        font-size: 0.6875rem;
    }
    
    .product-name {
        font-size: 0.9375rem;
    }
    
    .price-current {
        font-size: 1.0625rem;
    }
    
    .footer {
        padding-bottom: 0;
    }
    
    .footer-top {
        padding: 48px 0;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand .logo {
        font-size: 22px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .product-gallery img {
        height: 500px;
    }
    
    .cart-grid {
        grid-template-columns: 1fr 360px;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr auto;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr 380px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .account-grid {
        grid-template-columns: 250px 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch improvements */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
    
    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .category-card:hover {
        transform: none;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* Mobile Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2px 0;
    padding-bottom: max(2px, env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1px 4px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
    min-width: 40px;
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

.bottom-nav-item.active {
    color: var(--gold);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.bottom-nav-item.active .bottom-nav-icon i {
    color: var(--bg-primary);
}

.bottom-nav-item.active span {
    color: var(--gold);
    font-weight: 600;
}

.bottom-nav-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 2px;
    transition: all 0.15s ease;
}

.bottom-nav-icon i {
    font-size: 10px;
    transition: all 0.15s ease;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    transition: all 0.15s ease;
    margin-top: 2px;
}

.bottom-nav-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--gold);
    color: var(--bg-primary);
    font-size: 8px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Show only on mobile */
@media (max-width: 768px) {
    .header {
        background: transparent;
        border-bottom: none;
    }
    
    .logo {
        display: none;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    main {
        padding-bottom: 60px;
    }
    
    .footer {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 170px;
        border-radius: 12px 12px 0 0;
    }
    
    .product-info {
        padding: 8px 8px 10px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .price-current {
        font-size: 14px;
    }
    
    .price-original {
        font-size: 11px;
    }
    
    .product-rating .star {
        font-size: 10px;
    }
    
    .product-price .add-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Animation when page loads */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bottom-nav {
    animation: slideUp 0.2s ease forwards;
}

/* Touch feedback */
.bottom-nav-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-nav-item:active {
    opacity: 0.8;
}

/* Slider Styles */
.slider-section {
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: transform 0.3s ease;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    padding: 0 20px;
}

.slide-subtitle {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.slide-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.slide-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    padding: 16px 12px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.2);
}

.slider-btn.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.slider-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Slider Responsive */
@media (min-width: 768px) {
    .slider {
        height: 60vh;
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 42px;
    }
    
    .slide-text {
        font-size: 16px;
    }
    
    .slide-content {
        padding: 0 60px;
    }
    
    .slider-btn {
        padding: 20px 16px;
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .slider {
        height: 70vh;
        max-height: 600px;
    }
    
    .slide-title {
        font-size: 52px;
    }
    
    .slide-content {
        max-width: 600px;
        padding: 0 100px;
    }
}

/* Mobile slider adjustments */
@media (max-width: 768px) {
    .slider {
        height: 45vh;
        min-height: 300px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .slider-btn {
        padding: 12px 8px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 12px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* ============= CHECKOUT PAGE ============= */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.checkout-section:last-child { margin-bottom: 0; }

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.checkout-section-header .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.checkout-section-header h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.checkout-field {
    margin-bottom: 16px;
}
.checkout-field:last-child { margin-bottom: 0; }
.checkout-field label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}
.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.checkout-field textarea { resize: vertical; min-height: 80px; }

.checkout-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .checkout-field-row { grid-template-columns: 1fr; }
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.payment-option:last-child { margin-bottom: 0; }
.payment-option:hover { border-color: rgba(212, 175, 55, 0.4); }
.payment-option.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}
.payment-option input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.payment-option .payment-label strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}
.payment-option .payment-label small {
    font-size: 12px;
    color: var(--text-secondary);
}

.summary-sticky {
    position: sticky;
    top: 20px;
}
.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.summary-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--border);
}
.summary-header h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.summary-items {
    padding: 16px 24px;
    max-height: 320px;
    overflow-y: auto;
}
.summary-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; }
.summary-item-img {
    width: 56px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.summary-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
}
.summary-item-price {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.summary-totals {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.summary-row:last-child { margin-bottom: 0; }
.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}
.summary-row .label { color: var(--text-secondary); }
.summary-row .value { font-weight: 600; }
.summary-row.total .value { color: var(--gold); }
.summary-row .free { color: #22c55e; font-weight: 600; }
.summary-row .discount { color: #22c55e; }

.place-order-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: var(--gold);
    color: #000;
    transition: opacity 0.2s;
}
.place-order-btn:hover { opacity: 0.9; }
.place-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
.trust-badge i { font-size: 14px; }

.coins-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}
.coins-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.coins-available {
    font-size: 13px;
    color: var(--gold);
}
.coins-available strong { font-size: 16px; }
.coins-auto-toggle {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.coins-auto-toggle input[type="checkbox"] {
    accent-color: #2ecc71;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.coins-auto-toggle label {
    font-size: 12px;
    color: #2ecc71;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}
.coins-auto-toggle label small {
    display: block;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}
.coins-input-row {
    display: flex;
    gap: 8px;
}
.coins-input-row input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}
.coins-input-row button {
    padding: 10px 18px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.coins-applied {
    font-size: 12px;
    color: #22c55e;
    margin-top: 8px;
}
.coins-applied i { margin-right: 4px; }

.error-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.error-box ul {
    margin: 0;
    padding-left: 18px;
    color: #ef4444;
    font-size: 13px;
}
.error-box li { margin-bottom: 4px; }

.success-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 520px;
    margin: 0 auto;
}
.success-page .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-page .success-icon i {
    font-size: 36px;
    color: #22c55e;
}
.success-page h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.success-page .order-id-box {
    display: inline-block;
    margin: 16px 0;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.success-page .coin-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}
.success-page .coin-card {
    padding: 14px 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 180px;
}
.success-page .coin-card.saved {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.05));
    border: 1px solid #2ecc71;
}
.success-page .coin-card.earned {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid var(--gold);
}
.success-page .coin-card p { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
.success-page .coin-card.saved p { color: #2ecc71; }
.success-page .coin-card.earned p { color: var(--gold); }
.success-page .delivery-info { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
