/* =============================================
   COREMESA LABS — Production Stylesheet v2.0
   ============================================= */

/* Core Variables */
:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #141414;
    --bg-darkest: #0f0f0f;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --accent: #ffffff;
    --border-color: #2a2a2a;
    --border-hover: #444444;
    --header-height: 70px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-strong: 0 8px 40px rgba(0,0,0,0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul { list-style: none; }

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

/* Selection Styling */
::selection {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    color: #111;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 10000;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-notification.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast-notification i {
    color: #22c55e;
    font-size: 1.1rem;
}

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */
.announcement-bar {
    background-color: var(--bg-darkest);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#main-header {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: var(--header-height);
}

.logo a {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.logo a:hover { opacity: 0.8; }

.main-nav ul { display: flex; gap: 35px; }
.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #fff;
    transition: width 0.3s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after,
.main-nav a[style*="color: var(--text-primary)"]::after { width: 100%; }
.main-nav a[style*="color: var(--text-primary)"] { color: #fff !important; font-weight: 600; }

.header-icons {
    display: flex;
    gap: 22px;
    font-size: 1.05rem;
    color: var(--text-secondary);
}
.header-icons a { transition: color 0.2s, transform 0.2s; }
.header-icons a:hover { color: #fff; transform: translateY(-1px); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

/* Cart Icon Badge */
.cart-icon-wrapper { position: relative; display: inline-block; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #fff;
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   PAGE ENTRANCE ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* =============================================
   TOP HERO BANNER (Logo Section)
   ============================================= */
.top-hero-banner {
    position: relative;
    height: 50vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.top-hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/Coremesa Labs logo.png') center 12%/45% no-repeat;
    filter: brightness(0.6) contrast(1.1);
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 55%);
    mask-image: linear-gradient(to bottom, black 35%, transparent 55%);
}

/* Patch corner artifact on logo image */
.top-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 400px;
    height: 350px;
    background: radial-gradient(circle at bottom right, #000000 50%, transparent 85%);
    z-index: 1;
    pointer-events: none;
}

.top-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease forwards;
}

.top-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 35px;
    text-shadow: 0 4px 30px rgba(0,0,0,1);
}

.btn-shop-all {
    display: inline-block;
    background-color: #ffffff;
    color: #111111;
    padding: 15px 48px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    border: none;
    transition: var(--transition-smooth);
}

.btn-shop-all:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .top-hero-content h1 { font-size: clamp(1.5rem, 9vw, 2.5rem); }
    .top-hero-banner { height: 55vh; min-height: 380px; }
    .top-hero-bg { background-position: center 30%; background-size: 75%; }
}

/* =============================================
   MODERN SECTION DIVIDERS
   ============================================= */
.modern-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    width: 100%;
    margin: 0;
}

/* =============================================
   SPLIT BANNER HERO (CORE MESA LABS)
   ============================================= */
.banner-hero {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--bg-darker);
    overflow: hidden;
    position: relative;
}

.banner-left {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.banner-left h1 {
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -3px;
    margin: 0;
    color: #ffffff;
    max-width: 100%;
}

.banner-right {
    flex: 1.2;
    min-width: 350px;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #050505 80%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.banner-central-vial {
    position: relative;
    z-index: 10;
    max-width: 250px;
}

.banner-central-vial img {
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
}

/* Hexagons and Connections */
.hex-callouts {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.hex {
    position: absolute;
    width: 160px;
    height: 180px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 15;
}
.hex::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #111;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.hex-content {
    display: flex;
    flex-direction: column;
    z-index: 20;
    font-size: 0.75rem;
    color: #eee;
}
.hex-content strong {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
}

.hex-top-left { top: 20%; left: 10%; }
.hex-top-left::after {
    content: '';
    position: absolute;
    right: -80px; top: 50%;
    width: 80px; height: 2px;
    background-color: #fff;
}

.hex-bottom-left { top: 60%; left: 10%; }
.hex-bottom-left::after {
    content: '';
    position: absolute;
    right: -80px; top: 50%;
    width: 80px; height: 2px;
    background-color: #fff;
}

.hex-right { top: 30%; right: 5%; }
.hex-right::before {
    content: '';
    position: absolute;
    left: -100px; top: 50%;
    width: 100px; height: 2px;
    background-color: #fff;
    z-index: 2;
}

@media (max-width: 1024px) {
    .banner-left h1 { font-size: clamp(4rem, 18vw, 10rem); }
    .hex { transform: scale(0.7); }
    .hex-top-left, .hex-bottom-left { left: 0; }
    .hex-right { right: 0; }
}
@media (max-width: 768px) {
    .banner-left { padding: 50px 20px; }
    .hex-callouts { display: none; }
}

/* =============================================
   PRODUCT CAROUSEL
   ============================================= */
.carousel-section {
    padding: 80px 40px;
    text-align: center;
    background-color: var(--bg-dark);
}

.section-title {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.carousel-viewport {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track .product-card {
    flex: 0 0 calc(50% - 10px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.dot:hover { background: rgba(255,255,255,0.5); }
.dot.active {
    background: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .carousel-track .product-card { flex: 0 0 100%; }
    .carousel-section { padding: 50px 20px; }
}

/* =============================================
   PRODUCT GRID (Shop Page)
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: radial-gradient(circle, #2a2a2a 0%, #111 80%);
    overflow: hidden;
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.9;
}
.product-card:hover .img-container img {
    transform: scale(1.05);
    opacity: 1;
}

.product-info {
    padding: 18px 16px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}
.product-info h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-section {
    max-width: 800px;
    margin: 60px auto 100px;
    padding: 0 40px;
}

.faq-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.faq-question:hover h3 { color: #fff; }

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.active .toggle-icon { transform: rotate(180deg); color: #fff; }
.faq-item.active .faq-question h3 { color: #fff; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 20px; }

/* =============================================
   DISCLAIMER SECTION
   ============================================= */
.disclaimer-section {
    background-color: var(--bg-darkest);
    padding: 70px 40px;
    text-align: center;
}
.disclaimer-inner {
    max-width: 900px;
    margin: 0 auto;
}
.disclaimer-inner h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-weight: 700;
}
.disclaimer-inner p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.9;
    text-align: center;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-block;
    background-color: #fff;
    color: #111;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    text-transform: uppercase;
}
.btn-primary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--bg-darkest);
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    color: var(--text-secondary);
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.footer-bottom-right {
    display: flex;
    gap: 25px;
}
.footer-bottom-right a {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.footer-bottom-right a:hover { color: #fff; }

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .footer-brand p { max-width: 100%; margin: 0 auto; }
    .footer-links ul { align-items: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Legacy footer fallback (pages not yet updated) */
footer > p:only-child {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   PAGE HEADER (Shared: Shop, Cart, Contact)
   ============================================= */
.page-header {
    text-align: center;
    padding: 70px 20px 45px;
    background-color: var(--bg-dark);
    animation: fadeInUp 0.5s ease forwards;
}
.page-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.product-p-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    gap: 60px;
    animation: fadeInUp 0.6s ease forwards;
}

.product-p-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}
.product-p-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-p-details {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-p-details h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.pd-price {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.pd-stock {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.pd-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.qty-input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    width: 80px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}
.qty-input:focus {
    outline: none;
    border-color: #fff;
}

.pd-action {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
}

/* =============================================
   VARIANT TABS
   ============================================= */
.variant-tabs-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-tab {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
}

.variant-tab:hover {
    background-color: #2a2a2a;
    color: #fff;
    border-color: var(--border-hover);
}

.variant-tab.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

/* =============================================
   CART PAGE
   ============================================= */
.cart-layout {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 40px auto;
    gap: 50px;
    padding: 0 40px;
}

.cart-items-col {
    flex: 2;
    min-width: 300px;
}
.cart-items-col h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.cart-summary-col {
    flex: 1;
    min-width: 320px;
    background-color: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    height: max-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-strong);
}
.cart-summary-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    transition: background 0.2s;
}

.ci-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--bg-darkest);
    border-radius: var(--radius-sm);
    padding: 5px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ci-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ci-details { flex: 1; }
.ci-details h4 { margin-bottom: 4px; font-size: 0.95rem; color: #fff; font-weight: 700; }
.ci-details p { color: var(--text-muted); font-size: 0.82rem; margin: 0; }

.ci-qty {
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 80px;
    text-align: center;
    background: var(--bg-darker);
    padding: 8px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.ci-total {
    font-weight: 700;
    font-size: 1.05rem;
    width: 100px;
    text-align: right;
    color: #fff;
}

.ci-actions { margin-left: 10px; }
.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: var(--font-sans);
}
.btn-remove:hover { opacity: 1; }

.checkout-btn {
    width: 100%;
    text-align: center;
    padding: 16px 0 !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px;
}

/* Promo code section */
.promo-section { margin-bottom: 30px; }
.promo-section label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}
.promo-row {
    display: flex;
    gap: 10px;
}
.promo-row input {
    flex: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: border-color 0.2s;
}
.promo-row input:focus { outline: none; border-color: #fff; }
.promo-row button {
    background: var(--border-hover);
    border: none;
    color: #fff;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    transition: background 0.2s;
}
.promo-row button:hover { background: #555; }

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-layout {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    gap: 50px;
    padding: 0 40px;
}
.checkout-form-container {
    flex: 2;
    min-width: 300px;
}
.checkout-form-container h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.checkout-sidebar {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    height: max-content;
}
.checkout-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 10px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group { flex: 1; }

.card-box {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 10px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
    max-width: 600px;
    margin: 50px auto 80px;
    padding: 0 40px;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 16px !important;
    font-size: 0.95rem !important;
    margin-top: 10px;
}

/* =============================================
   SECURE CHECKOUT BADGE
   ============================================= */
.secure-badge {
    margin-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.secure-badge i { margin-right: 5px; }

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .header-content { padding: 0 20px; }

    .mobile-menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darkest);
        padding: 80px 30px 30px;
        border-left: 1px solid var(--border-color);
        transition: right 0.35s ease;
        z-index: 100;
    }
    .main-nav.open { right: 0; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        display: block;
        padding: 18px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav a::after { display: none; }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .product-grid { padding: 0 20px; gap: 16px; }
    .cart-layout { padding: 0 20px; }
    .checkout-layout { padding: 0 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .faq-section { padding: 0 20px; }

    .banner-hero { min-height: auto; }

    .cart-item-row { flex-wrap: wrap; }
    .ci-total { width: auto; text-align: left; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-info { padding: 12px 10px; }
    .product-info h3 { font-size: 0.75rem; }
    .price { font-size: 0.75rem; }
}
