    :root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #000000;
    --gray-light: #f8f9fa;
    --border: rgba(0,0,0,0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
    --footer-bg: #ffffff;
    --footer-text: #1f2937;
    --footer-text-muted: #6b7280;
    --footer-accent: #1d4ed8;
    --footer-border: rgba(0,0,0,0.08);
    --footer-hover: #3b82f6;
    --badge-bg: rgba(0,0,0,0.03);
    --badge-border: rgba(0,0,0,0.10);
}
    html { scroll-behavior: smooth; }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { 
        font-family: 'Inter', system-ui, sans-serif; 
        background: #f8fafc; 
        color: #222; 
        line-height: 1.6; 
        overflow-x: hidden;
        padding-top: 70px;
        min-height: 100vh;
        background-image: 
        radial-gradient(#cbd5e1 0.2px, transparent 1px);
        background-size: 20px 20px; 
    }

    /* ================== NAVIGATION ================== */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 6%;
      z-index: 1000;
      backdrop-filter: blur(20px);
      background: rgba(255, 255, 255, 0.12);
      transition: var(--transition);
    }

    .logo {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      font-size: clamp(1.5rem, 4vw, 1.9rem);
      font-weight: 800;
      letter-spacing: -1.2px;
      color: var(--text);
      transition: var(--transition);
    }

    .logo img {
      display: block;
      height: 8rem;               /* reduced for better proportion */
      width: auto;
      max-height: 100%;
      object-fit: contain;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .logo:hover img {
      transform: scale(1.04);
      opacity: 0.92;
    }

    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      color: var(--text);
      text-decoration: none;
      font-weight: 500;
      font-size: 15px;
      position: relative;
      padding: 8px 0;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: var(--transition);
      transform: translateX(-50%);
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 12px;                    /* tighter & balanced */
    }

    /* Consistent modern glassmorphic buttons */
    .nav-btn {
      height: 38px;                 /* fixed height → same size */
      padding: 0 18px;
      font-size: 14.5px;
      font-weight: 600;
      line-height: 1;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 10px;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
      backdrop-filter: blur(16px);
      color: #fff;
      white-space: nowrap;
      position: relative;
      background: #000000;
    }


    .menu-toggle {
      display: none;
      width: 48px;
      height: 48px;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      padding: 8px;
      z-index: 1001;
    }

    .menu-toggle span {
      width: 28px;
      height: 2.5px;
      background: var(--text);
      border-radius: 2px;
      transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      transform-origin: center;
    }

    .menu-toggle.open span:nth-child(1) {
      transform: rotate(45deg) translate(9px, 8px);
    }

    .menu-toggle.open span:nth-child(2) {
      opacity: 0;
      transform: translateX(20px);
    }

    .menu-toggle.open span:nth-child(3) {
      transform: rotate(-45deg) translate(9px, -8px);
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100dvh;
      background: var(--bg);
      color: var(--text);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 48px;
      font-size: 2.8rem;
      font-weight: 400;
      letter-spacing: -1.5px;
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-30px);
      transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .mobile-menu.open {
      opacity: 1;
      visibility: visible;
      pointer-events: all;
      transform: translateY(0);
    }

    .mobile-menu a {
      color: var(--text);
      text-decoration: none;
      opacity: 0.85;
      transition: all 0.4s ease;
    }

    .mobile-menu a:hover {
      opacity: 1;
      transform: scale(1.06);
    }

    .body-no-scroll {
      overflow: hidden !important;
      height: 100vh !important;
    }

 /* ================== Main Body ================== */

    .container { margin: 0 auto; padding: 0 6%; }
    header h2 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        letter-spacing: -1.2px;
        font-weight: 400;
        margin: 30px 0 60px 0;
        text-align: center;
        color: #0f172a;
    }

    /* Cards */
    .grid, .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 3rem;
        margin-bottom: 5rem;
    }
    .card, .news-card {
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        transition: transform 0.3s ease;
    }
    .card:hover, .news-card:hover { transform: translateY(-8px); }
    .card img, .news-card img {
        width: 100%;
        height: 320px;
        object-fit: cover;
    }
    .news-card img { height: 280px; }
    .card-content, .news-content { padding: 1.4rem; }
    .card-title, .news-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .card-price { font-size: 1.3rem; font-weight: 600; color: #444; margin-bottom: 1rem; }
    .card-desc, .news-desc { font-size: 0.98rem; color: #555; margin-bottom: 1.5rem; }
    .btn {
        display: inline-block;
        background: #444444;
        color: #fff;
        padding: 0.45rem 0.8rem;
        border-radius: 30px;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.3s;
    }
    .btn:hover { background: #333; }

    /* ================== DETAIL PAGE LAYOUT ================== */
    .detail-page {
        display: none;
        max-width: 1200px;
        margin: 2rem auto;
        padding: 1.5rem;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        position: relative;
        overflow: hidden;
    }
    .detail-page.active { display: block; }

    .detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.2rem;
        position: relative;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid #eee;
    }

    .back-btn {
        position: static;
        color: #555;
        text-decoration: underline;
        font-size: 0.95rem;
        cursor: pointer;
        order: 1;
    }

    .detail-title {
        font-size: 1.9rem;
        text-align: center;
        margin: 0;
        flex: 1;
        order: 2;
        min-width: 200px;
    }

    .buy-now-top {
        background: #444444;
        color: white;
        padding: 0.6rem 1.4rem;
        border: none;
        border-radius: 30px;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.2s;
        order: 3;
    }
    .buy-now-top:hover { background: #333; }

    .detail-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
        align-items: start;
    }

    .detail-image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .detail-image {
        width: 100%;
        max-height: 380px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.12);
        margin-bottom: 1rem;
    }

    .detail-price {
        font-size: 1.8rem;
        font-weight: 700;
        color: #000;
        margin: 0;
        text-align: center;
    }

    .detail-info {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .info-section h3 {
        font-size: 1.3rem;
        margin-bottom: -0.2rem;
        color: #222;
        font-weight: 600;
    }

    .info-section p {
        font-size: 1rem;
        line-height: 1.65;
        color: #444;
        margin: 0 0 -0.1rem 0;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .buy-now-bottom {
        align-self: flex-end;
        margin-top: 2rem;
        padding: 0.6rem 1.4rem;
        font-size: 0.95rem;
        font-weight: 600;
        background: #444444;
        color: white;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .buy-now-bottom:hover {
        background: #333;
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    /* Hide main header on detail page */
    .detail-page.active ~ header,
    .detail-page.active ~ .container header,
    body:has(.detail-page.active) header {
        display: none !important;
    }


    /* ================== MODAL STYLES ================== */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.5);
        padding-top: 60px;
    }

    .modal-content {
        background-color: #ffffff;
        margin: 0 auto;
        padding: 2rem 1.5rem 2.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        position: relative;
        width: 90%;
        max-width: 700px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        text-align: center;
        font-size: 1.8rem;
        margin: 0 0 1.5rem 0;
        padding-right: 40px;
        color: #222;
    }

    .close-modal {
        color: #aaa;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 38px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
    }
    .close-modal:hover { color: #000; }

    #payment-form {
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .form-group { margin-bottom: 1.2rem; text-align: left; }
    .form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
    .form-group input, .form-group select {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
    }

    .btn-primary {
        display: block;
        width: 80%;
        max-width: 400px;
        margin: 1.5rem auto 0;
        padding: 14px 20px;
        background: #444444;
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .btn-primary:hover {
        background: #333;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .note { text-align: center; font-size: 0.9rem; color: #666; margin-top: 1.5rem; }

/* ================== FOOTER ================== */

/* ==================================== RESPONSIVE MEDIA QUERIES ==================================== */

/* ═══════════════════════════════ NAVIGATION - Hide nav buttons on small devices ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    /* Hide nav-right buttons on tablets and smaller */
    .nav-right {
        display: none;
    } 
    /* Show menu toggle */
    .menu-toggle {
        display: flex;
    }
    /* Adjust nav padding */
    nav {
        padding: 0 4%;
    }
}

/* ═══════════════════════════ Main body ═════════════════════════════ */

/* Responsive */
    @media (max-width: 1024px) {
        .container { padding: 20px 4%;}
        header h2 { padding: 80px;}
        .detail-page { margin: 1rem; padding: 1rem;}
        .detail-content { grid-template-columns: 1fr; gap: 2rem;}
        .detail-image { max-height: 340px; }
        .detail-title { font-size: 1.7rem; }
        .detail-price { font-size: 1.6rem; }
        .buy-now-bottom { align-self: center; width: fit-content; padding: 0.8rem 2rem; }
        .nav-links { display: none; }
        .menu-toggle { display: flex !important; }
    }
    @media (max-width: 768px) {
        .container { padding: 0 3%;}
        header h2 { padding: 60px;}
        .detail-page { margin: 1rem; padding: 1rem; }
        .detail-header { flex-direction: column; text-align: center; gap: 0.8rem; }
        .detail-title { font-size: 1.55rem; }
        .back-btn { align-self: flex-start; }
        .buy-now-top { align-self: center; width: fit-content; padding: 0.7rem 1.6rem; }
        .buy-now-bottom { padding: 0.7rem 1.6rem; font-size: 0.95rem; }
        .detail-price { font-size: 1.5rem; }
        .info-section p { font-size: 0.98rem; }
    }
    /* Mobile modal adjustments */
    @media (max-width: 480px) {
        .container { padding: 0 2%;}
        header h2 { padding: 5px; font-size: 1.8rem;}
        .modal-content {
            margin: 5% auto;
            padding: 1.8rem 1.2rem 2.2rem;
            width: 92%;
        }
        .modal-content h2 { font-size: 1.6rem; padding-right: 50px; }
        .close-modal { font-size: 36px; top: 12px; right: 16px; }
        .btn-primary { width: 90%; padding: 14px; font-size: 1rem; }
    }
    
    .is-invalid{
    border-color : red !important;
}
.valid{
    border-color : #ddd;
}