@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-main: #f5f5f7;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.2);
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent-blue: #0066cc;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
}

/* Metallic Silver Subtle Shine */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes appleMesh {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) translate(2%, 2%); }
}

/* Scroll Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navbar */
header {
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000; /* Force black for visibility */
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-menu a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.main-content {
    flex: 1;
    padding: 80px 0;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1.1;
    background: linear-gradient(to right, #ff0000, #000000, #008000, #ff0000);
    background-size: 300% auto;
    animation: titleShine 5s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #1d1d1f;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 500;
}

/* Layout */
.content-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .content-layout {
        flex-direction: column;
    }
}

.products-area {
    flex: 1;
    width: 100%;
}

/* Glassmorphism Cards - Premium Level */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.product-image-gallery {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.product-image-gallery::-webkit-scrollbar {
    display: none;
}

.product-image {
    height: 180px;
    min-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: center;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.product-name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ff0000, #000000, #008000, #ff0000);
    background-size: 300% auto;
    animation: titleShine 5s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-price {
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

/* Stock Bar Animation */
.stock-container {
    margin-bottom: 24px;
}

.stock-text {
    font-size: 14px;
    color: #25D366; /* WhatsApp Green */
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.stock-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(192, 132, 252, 0.6);
}

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

.btn-outline:hover {
    background: rgba(192, 132, 252, 0.1);
    border-color: #c084fc;
    color: #c084fc;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.qty-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.qty-buttons .btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

.custom-qty {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
}

.custom-qty span {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
}

.custom-qty input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #cccccc;
    color: #000000;
    padding: 10px;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.custom-qty input:focus {
    border-color: #c084fc;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.total-price-wrapper {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
}

.total-amount {
    font-size: 26px;
    font-weight: 800;
    color: #25D366; /* Green */
    letter-spacing: -0.5px;
}

.price-bump {
    animation: bump 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #fff; }
    100% { transform: scale(1); }
}

/* News Sidebar */
.news-sidebar {
    width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 100px;
    height: 500px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .news-sidebar {
        width: 100%;
        position: static;
        height: 400px;
    }
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-ticker {
    height: calc(100% - 50px);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

.news-ticker-inner {
    animation: tickerScroll 25s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 0;
}

.news-ticker-inner:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.news-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.news-card:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-message {
    font-size: 14px;
    color: #444444;
    line-height: 1.6;
    font-weight: 400;
}

/* WhatsApp Button */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* Success Page & Checkout */
.checkout-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    max-width: 500px;
    margin: 0 auto;
}

.summary-table {
    width: 100%;
    margin-bottom: 32px;
    border-collapse: collapse;
}

.summary-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.success-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 32px auto;
    border: 2px solid var(--text-primary);
}

.success-icon {
    font-size: 32px;
    color: var(--text-primary);
}

.delivery-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
    text-align: left;
}

.delivered-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-data-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.copy-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Admin panel fixes for new design */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 250px; border-right: 1px solid var(--border-color); padding: 32px 0; }
.sidebar .logo { padding: 0 24px; margin-bottom: 48px; }
.nav-links { list-style: none; }
.nav-links li a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.nav-links li a:hover, .nav-links li a.active { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.admin-content { flex: 1; padding: 48px; }
table { width: 100%; border-collapse: collapse; margin-top: 24px; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 14px; }
th { color: var(--text-secondary); font-weight: 500; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-bottom: 48px; }
.stat-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
.stat-title { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 600; color: var(--text-primary); letter-spacing: -1px; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 13px; }
.form-control { width: 100%; background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); padding: 12px; border-radius: 8px; outline: none; font-size: 14px; }
.form-control:focus { border-color: var(--text-primary); }
