/* SliceMart - Premium E-commerce Stylesheet */
/* ============================================ */

:root {
    /* Premium Gradient Colors */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;

    /* Gold/Luxury Accent */
    --accent: #f59e0b;
    --accent-gold: #fbbf24;
    --accent-rose: #f43f5e;

    /* Status Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Dark Premium Palette */
    --dark: #0f0f23;
    --dark-900: #0a0a1a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --light: #fafafa;
    --white: #ffffff;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-premium: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    --shadow-md: 0 8px 25px rgba(139, 92, 246, 0.2);
    --shadow-lg: 0 15px 40px rgba(139, 92, 246, 0.25);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar - Hidden on Mobile */
.top-bar {
    background: linear-gradient(90deg, var(--dark) 0%, #1a1a3e 100%);
    color: var(--gray-400);
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    color: var(--accent-gold);
}

/* Main Header - Compact for Mobile */
.main-header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
    display: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--gray-800);
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    padding: 12px 22px;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gray-600);
    font-size: 10px;
    position: relative;
    padding: 5px;
}

.header-action i {
    font-size: 20px;
}

.header-action span {
    display: none;
}

.header-action:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-gold);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 5px;
}

/* Navigation */
.main-nav {
    background: linear-gradient(90deg, var(--dark) 0%, #1a1a3e 100%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: var(--transition);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* Hero Section - Premium */
.hero {
    background: var(--gradient-hero);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-text h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-300);
    font-size: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.hero-feature i {
    color: var(--accent-gold);
    font-size: 16px;
}

.hero-image {
    display: none;
}

.hero-badge {
    position: fixed;
    top: auto;
    bottom: 100px;
    right: 15px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 14px;
    animation: pulse 2s infinite;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Section Styles */
.section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.category-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 12px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
}

.product-image {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-height: 180px;
    width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-actions {
    display: none;
}

.product-info {
    padding: 12px;
}

.product-category {
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-title a:hover {
    color: var(--primary);
}

.product-desc {
    display: none;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.original-price {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-buttons {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 11px;
    flex: 1;
    justify-content: center;
}

.btn-cart {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-view {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.article-image {
    height: 160px;
    background: var(--gradient-primary);
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
}

.article-content {
    padding: 15px;
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--gray-400);
}

/* Newsletter */
.newsletter {
    background: var(--gradient-hero);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: var(--gray-400);
    margin-bottom: 25px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: var(--gray-400);
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, var(--dark) 0%, #0a0a1a 100%);
    color: var(--gray-400);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: var(--gray-400);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.footer-feature i {
    font-size: 20px;
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
}

/* Page Header */
.page-header {
    background: var(--gradient-hero);
    padding: 30px 0;
    color: var(--white);
}

.page-header h1 {
    font-size: 22px;
    margin-top: 10px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-400);
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

/* Cart Page */
.cart-page {
    padding: 30px 0;
}

.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: block;
}

.cart-table thead {
    display: none;
}

.cart-table tbody {
    display: block;
}

.cart-table tr {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.cart-table td {
    padding: 5px 0;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.cart-product-title {
    font-weight: 600;
    font-size: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 16px;
}

.quantity-control input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    color: var(--danger);
    font-size: 16px;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid var(--gray-200);
    margin-top: 15px;
    padding-top: 15px;
    color: var(--primary);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.empty-cart i {
    font-size: 60px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--gray-500);
    margin-bottom: 25px;
}

/* Checkout Page */
.checkout-page {
    padding: 30px 0;
}

.checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-form {
    order: 2;
}

.order-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    order: 1;
}

.order-summary h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    align-items: center;
}

.order-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
}

.order-item-qty {
    font-size: 11px;
    color: var(--gray-500);
}

.order-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

/* 6-Step Checkout */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    position: relative;
}

.checkout-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 100%;
    width: 100%;
    height: 2px;
    background: var(--gray-200);
}

.checkout-step.active:not(:last-child)::after {
    background: var(--gradient-primary);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

.checkout-step.active .step-number,
.checkout-step.completed .step-number {
    background: var(--gradient-primary);
    color: var(--white);
}

.checkout-step.completed .step-number {
    background: var(--success);
}

.step-label {
    font-size: 10px;
    color: var(--gray-500);
    text-align: center;
}

.checkout-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Order Tracking */
.track-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.order-status {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
    overflow-x: auto;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gray-200);
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    min-width: 60px;
}

.status-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.status-step.active .status-step-icon {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.status-step-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
}

.status-step.active .status-step-title {
    color: var(--primary);
}

/* Product Detail */
.product-detail {
    padding: 30px 0;
}

.product-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-gallery {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.main-image {
    position: relative;
    text-align: center;
}

.main-image img {
    max-height: 300px;
    object-fit: contain;
}

.product-details {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.product-details h1 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray-500);
}

.product-rating i {
    color: var(--accent-gold);
}

.detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-current-price {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-original-price {
    font-size: 18px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.detail-discount {
    background: var(--gradient-gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
}

.detail-description {
    color: var(--gray-600);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.7;
}

.quantity-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-input label {
    font-weight: 600;
}

.detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-cart {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-buy-now {
    background: var(--gradient-gold);
    color: var(--white);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.product-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    font-size: 11px;
    color: var(--gray-600);
}

.product-feature i {
    font-size: 20px;
    color: var(--primary);
}

/* Flash Message */
.flash-message {
    padding: 12px 0;
    font-weight: 500;
    font-size: 14px;
}

.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: linear-gradient(90deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.flash-error {
    background: linear-gradient(90deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.flash-warning {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

/* ==================================
   TABLET STYLES (768px+)
   ================================== */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo-tagline {
        display: block;
    }

    .logo-name {
        font-size: 24px;
    }

    .header-action span {
        display: block;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        font-size: 38px;
    }

    .category-name {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-desc {
        display: block;
        font-size: 12px;
        color: var(--gray-500);
        margin-bottom: 12px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .cart-table {
        display: table;
    }

    .cart-table thead {
        display: table-header-group;
    }

    .cart-table tbody {
        display: table-row-group;
    }

    .cart-table tr {
        display: table-row;
    }

    .cart-table th,
    .cart-table td {
        display: table-cell;
        padding: 15px;
    }

    .checkout-grid {
        display: grid;
        grid-template-columns: 1fr 350px;
    }

    .checkout-form {
        order: 1;
    }

    .order-summary {
        order: 2;
        position: sticky;
        top: 100px;
        height: fit-content;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .detail-buttons {
        flex-direction: row;
    }

    .product-details h1 {
        font-size: 26px;
    }
}

/* ==================================
   DESKTOP STYLES (1024px+)
   ================================== */
@media (min-width: 1024px) {
    .top-bar {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }

    .logo-icon {
        font-size: 32px;
    }

    .search-bar input {
        padding: 12px 20px;
    }

    .header-action {
        padding: 8px 10px;
    }

    .header-action i {
        font-size: 22px;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image {
        display: block;
    }

    .hero-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        bottom: auto;
        font-size: 20px;
        padding: 15px 25px;
    }

    .section {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-image {
        height: 200px;
    }

    .product-actions {
        display: flex;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .main-image img {
        max-height: 400px;
    }
}

/* ==================================
   LARGE DESKTOP (1280px+)
   ================================== */
@media (min-width: 1280px) {
    .hero {
        padding: 80px 0;
    }

    .hero-text h1 {
        font-size: 56px;
    }

    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .section-title {
        font-size: 28px;
    }
}

/* Hide top bar on mobile */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu>li>a {
        padding: 15px 20px;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }

    /* Mobile Search Bar - Show as Icon Button */
    .search-bar {
        flex: none;
        width: auto;
        min-width: auto;
        max-width: none;
        margin: 0;
        background: transparent;
        border: none;
        border-radius: 50%;
    }

    .search-bar input {
        display: none;
    }

    .search-bar button {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        background: var(--gradient-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .search-bar:focus-within {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action {
        padding: 3px;
    }

    .header-action i {
        font-size: 18px;
    }
}

/* ==================================
   WHATSAPP FLOATING BUTTON
   ================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: whatsapp-bounce 2s infinite;
}

.whatsapp-float i {
    animation: whatsapp-shake 2s infinite;
    animation-delay: 0.5s;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-float:hover i {
    animation: none;
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: #25D366;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* WhatsApp Animations */
@keyframes whatsapp-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes whatsapp-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ==================================
   AD CONTAINERS
   ================================== */
.ad-container {
    padding: 15px 0;
    text-align: center;
    overflow: hidden;
}

.ad-container img {
    max-width: 100%;
    height: auto;
}

.ad-below_header,
.ad-top_banner {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.ad-above_footer {
    background: var(--gray-100);
    padding: 20px 0;
    margin-top: 30px;
}

.ad-footer_top,
.ad-footer_bottom {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.ad-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.ad-content_middle {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-radius: var(--radius);
    padding: 20px;
    margin: 30px 0;
    border: 1px dashed var(--gray-200);
}

/* Mobile adjustments for WhatsApp */
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .ad-container {
        padding: 10px 0;
    }
}