
/* ----- Google Font Import ----- */
      @import url('https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ----- CSS Custom Properties (Light Theme Defaults) ----- */
    :root {
      --surface: #ffffff;
      --text: #1a1a1a;
      --primary: #2d5a27;
      --secondary: #8b6914;
      --border: rgba(0,0,0,0.05);
      --text-secondary: rgba(0,0,0,0.6);
       --text-white: rgb(255, 255, 255);
        --text-black: rgb(0, 0, 0 );
    }

/* Dark mode — overrides custom properties via body class */
    body.dark-mode {
      --surface: #121212;
      --text: #e0e0e0;
      --border: rgba(255,255,255,0.15);
      --text-secondary: rgba(255,255,255,0.7);
      --text-black: #e0e0e0;
      --text-white: #121212;
    }

/* ----- Base Reset & Body ----- */
    html, body { height: 100%; margin: 0; }
    body { font-family: "Acme", sans-serif; background: var(--bg); scroll-behavior: smooth; color: var(--text); transition: background .3s, color .3s; }
    .font-display { font-family: "Acme", sans-serif; }

    /* Disable tap highlight & callout on mobile for all elements */
    * {
      -webkit-tap-highlight-color: transparent;
      -webkit-touch-callout: none;
    }

/* ----- Logo Component ----- */
    .logo{
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
      width: fit-content;
    }

    .logo_img{
      width: 40px;
      height: 40px;
      background: var(--primary);
      border-radius: 100%;
      background-image: url('img/logo.jpeg');
      background-size: cover;
      background-position: center;
    }
    #nav-title{
            font-family: 'Lobster Two', cursive;
    }

/* ----- Interactive Element Touch Behaviour ----- */
    button, a, [role="button"], input[type="button"], input[type="submit"] {
      cursor: pointer;
      touch-action: manipulation;
      -webkit-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    button:active, a:active, [role="button"]:active {
      opacity: 0.8;
    }



    /* ----- Bubble Bounce Entrance Animation (used by panels) ----- */
    @keyframes bubbleBounce {
      0% { transform: scale(.8) translateY(20px); opacity: 0; }
      50% { transform: scale(1.05); }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }

    /* ----- Skeleton / Shimmer Loading Animation ----- */
    @keyframes shimmer {
      0% { background-position: -1000px 0; }
      100% { background-position: 1000px 0; }
    }
    .skeleton {
      background: linear-gradient(90deg, var(--surface) 25%, rgba(0,0,0,0.05) 50%, var(--surface) 75%);
      background-size: 1000px 100%;
      animation: shimmer 2s infinite;
    }
    body.dark-mode .skeleton {
      background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.05) 50%, var(--surface) 75%);
    }

/* ----- Main Content Area ----- */
    main{
      background: var(--surface);
    }

    /* ----- Panel Overlay & Slide Panels ----- */
    .panel-overlay { opacity: 0; pointer-events: none; transition: opacity .3s; background: rgba(0, 0, 0, 0.736); }
    .panel-overlay.active { opacity: 1; pointer-events: auto; }
    .side-panel { transform: translateX(100%); transition: transform .4s cubic-bezier(.34,.1,.64,.1); animation: none; }
    .side-panel.active { transform: translateX(0); animation: bubbleBounce .5s cubic-bezier(.34,.1,.64,.1); }
    .bottom-panel { transform: translateY(100%); transition: transform .4s cubic-bezier(.34,.1,.64,.1); animation: none; }
    .bottom-panel.active { transform: translateY(0); animation: bubbleBounce .5s cubic-bezier(.34,.1,.64,.1); }

/* Prevent body scrolling while any panel is open */
    body.panel-open {
      overflow: hidden !important;
    }

    /* ----- Toast Notification System ----- */
    .toast-container {   position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
   background: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  white-space: nowrap;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  align-items: center;
  gap: 8px;
 }

    .toast { pointer-events: auto; border-radius: 100px;   animation: toastIn .4s ease forwards;  backdrop-filter: blur(10px); background: var(--surface); color: var(--text); }
    .toast.out { top: 30px; animation: toastOut .3s ease forwards; }
    @keyframes toastIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
    @keyframes toastOut { from { opacity:1; transform: translateY(0); } to { opacity:0; transform: translateY(-12px); } }

    /* ----- Custom Dropdown Menu (country/state selectors) ----- */
    .dropdown-menu { opacity: 0; transform: scale(.95) translateY(-4px); pointer-events: none; transition: all .2s ease; background: var(--surface); }
    .dropdown-menu.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

    /* ----- Section Navigation Buttons (prev/next arrows) ----- */
    .section-nav-btn { cursor: pointer; background: var(--surface); }
    .section-nav-btn:hover { background: var(--border); opacity: 0.8; }
    .section-nav-btn:active { transform: scale(0.95); }

    /* ----- Product Card Styles & Hover Effects ----- */
    .product-card { transition: all 300ms ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); background: var(--surface); }
    .product-card:hover { transform: translateY(-4px); transition: all 300ms ease; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
    .product-image { display: block; object-fit: cover; }

    /* ----- Hero Section Background & Layout ----- */
    .hero-section { 
      background: linear-gradient(135deg, rgba(45,90,39,.05) 0%, rgba(139,105,20,.05) 100%); 
      background-image: url(img/hero.png); 
          background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: fit-content;
        margin-top: 4%;
    }

    /* ----- Section Divider (thin horizontal rule) ----- */
    .section-divider { height: 1px; background: var(--border); }

    /* ----- Dark Mode Overrides for Specific Elements ----- */
    body.dark-mode nav { background: linear-gradient(to bottom, var(--surface), rgba(26,26,26,0.8)); }
    body.dark-mode .hero-section { background: linear-gradient(135deg, rgba(45,90,39,.1) 0%, rgba(139,105,20,.1) 100%); }
    body.dark-mode button { transition: all 0.3s ease; }

    /* ----- Footer ----- */
    footer { background: var(--surface); border-top: 1px solid var(--border); transition: background .3s, border-color .3s; }

    /* ----- Infinite Marquee / Carousel (featured products) ----- */
    .slider-container {
      overflow: hidden;
      width: 100%;
      position: relative;
      padding: 20px 0;
    }
    .infinite-track {
      display: flex;
      width: 100%;
      gap: 1.5rem;
    }
    .carousel-item {
      width: 280px;
      flex-shrink: 0;
    }

    /* ----- Full-Screen Image Popup ----- */
    .img-popup-overlay {
      position: fixed; inset: 0; z-index: 9999;
      background: rgb(0, 0, 0);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; opacity: 0; transition: opacity 0.25s;
    }
    .img-popup-overlay.open { opacity: 1; }
    .img-popup-overlay img {
      max-width: 92vw; max-height: 92vh;
      object-fit: contain; border-radius: 8px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.5);
      cursor: default;
    }
    .img-popup-close {
      position: fixed; top: 20px; right: 20px;
      width: 44px; height: 44px; border-radius: 50%;
      background: rgba(255,255,255,0.15);
      border: none; color: #fff; font-size: 28px;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.2s; z-index: 10000;
    }
    .img-popup-close:hover { background: rgba(255,255,255,0.3); }

    .product-image{
      object-fit: contain !important;
      image-rendering: auto;
      content-visibility: auto;
    }

    /* Optimize image loading: prevent layout shift, reduce paint cost */
    .product-card img {
      background: var(--border);
      aspect-ratio: 1 / 1;
      width: 100%;
      height: auto;
    }

    .aspect-video{
      width: 100%;
      height: 360px;
    }

    /* Close button inside side panel header */
    #close-side{
    background: var(--primary);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-white) !important;
    width: 40px;
    height: 40px;
    min-height: auto !important;
    border-radius: 100px;
    }



    /* ----- Category Section Horizontal Margins ----- */
    #womens-fashion{
      margin: 0 10rem ;
    }

      #mens-fashion{
      margin: 0 10rem ;
    }

        #electronics-fashion{
      margin: 0 10rem ;
    }

    .product_description{
      font-size: 18px;
    }

.add-btn{
  Width: 50px;
  Height: 50px;
}

/* Quantity & delete controls in cart — stacked vertically on the right */
    .qty_del{
      display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    }



/* ----- Mobile Responsive (max-width: 768px) ----- */
      @media (max-width: 768px) {
        
    #womens-fashion{
      margin: 0 ;
      margin-bottom: 10%;
    }
    #electronics-fashion{
      margin: 0 ;
    }

    #close-bottom{
      background: var(--primary);
    color: var(--text-white) !important;
    border-radius: 100px;
    width: 30px;
    height: 40px;
    min-height: auto !important;
    }

    .qty_del{
      display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    }
      #mens-fashion{
      margin: 0 ;
      margin-bottom: 10%;
    }
    /* Narrower carousel items on mobile */
    .carousel-item {
    width: 200px;
}
.side-panel{
      background: var(--surface);
    max-height: 65%;
    bottom: 0;
    position: fixed;
    top: auto;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    overflow: scroll;
}

/* Speed up scroll on mobile for smoother feel */
.infinite-track {
    width: 300%;
}

.add-btn{
  Width: 40px;
  Height: 40px;
}

    .hero-section { 
        margin-top: 16%;
    }

    .herobox{
      display: flex;
      align-items: center;
      flex-direction: column;
    }


    /* Mobile Touch Responsiveness Fixes */
    button {
      touch-action: manipulation;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    button:active {
      opacity: 0.8;
    }

    #dark-mode-toggle-mobile{
     background: var(--primary);
    height: 30px !important;
    width: 60px;
    padding: 0 5px;
    min-height: auto;
    justify-content: flex-start;
    }




    .bottom-panel {
      touch-action: manipulation;
      -webkit-user-select: none;
      user-select: none;
    }

    .side-panel {
      touch-action: manipulation;
      -webkit-user-select: none;
      user-select: none;
    }

    .panel-overlay {
      touch-action: manipulation;
    }

    /* Ensure clickable elements have proper hit targets */
    button, [role="button"], .add-btn, .qty-inc, .qty-dec, .remove-btn {
      min-width: 40px;
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }


    /* Prevent zoom on button clicks */
    input, button, textarea, select {
      font-size: 16px;
    }
}


/* ----- Checkout Sheet Overlay (full-screen slide-in from right) ----- */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.checkout-sheet {
    width: 100%;
    max-width: 500px;
    background: var(--surface);
    box-shadow: -5px 0 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.checkout-overlay.active .checkout-sheet {
    transform: translateX(0);
}

.checkout-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
background: var(--primary);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: end;
    justify-content: center;
    border-radius: 100px;
}
#close-profile-mobile{
    background: var(--primary);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-white) !important;
    width: 40px;
    height: 40px;
    border-radius: 100px;
}

    .dark\:hover\:bg-gray-800:hover {
    color: white !important;
    }

#close-profile{
    background: var(--primary);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-white) !important;
    width: 40px;
    height: 40px;
    min-height: auto !important;
    border-radius: 100px;
}

    #close-history-mobile{
        background: var(--primary);
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: var(--text-white) !important;
        width: 40px;
        height: 40px;
        min-height: auto !important;
        border-radius: 100px; 
    }

    #close-history{
        background: var(--primary);
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: var(--text-white) !important;
        width: 40px;
        height: 40px;
        min-height: auto !important;
        border-radius: 100px; 
    }

    #close-address-mobile{
       background: var(--primary);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-white) !important;
    width: 40px;
    height: 40px;
    min-height: auto !important;
    border-radius: 100px; 
}

#close-address{
       background: var(--primary);
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-white) !important;
    width: 40px;
    height: 40px;
    min-height: auto !important;
    border-radius: 100px; 
}


.checkout-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Order summary box within checkout */
.order-review-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.order-review-box h4, .bespoke-form h4 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-items-list {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
        gap: 32px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e5e5e5;
    padding-top: 12px;
    font-size: 1.1rem;
}

/* ----- Shipping Method Selection (radio-style cards) ----- */
.shipping-method-list {
    margin-bottom: 16px;
}
.shipping-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.shipping-method-option:hover {
    border-color: #ccc;
}
.shipping-method-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}
.shipping-method-option input[type="radio"] {
    accent-color: #3b82f6;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.shipping-method-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.shipping-method-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}
.shipping-method-detail {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}
.shipping-method-fee {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    white-space: nowrap;
}
.shipping-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ----- Custom Minimal Form Controls (bespoke checkout form) ----- */
.bespoke-form .form-group {
    margin-bottom: 16px;
}

.bespoke-form .form-group-row {
    display: flex;
    gap: 12px;
}

.bespoke-form .form-group-row .form-group {
    flex: 1;
}

#delivery-details-form{
    padding-bottom: 30%;
}
.bespoke-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 100px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-black);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.bespoke-form input:focus,
.bespoke-form textarea:focus {
    border-color: var(--text);
    outline: none;
}

.bespoke-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-black);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

#address-content-mobile button{
    border-radius: 100px !important;
}

.premium-checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s ease;
}

.premium-checkout-btn:hover {
    background: #2a2a2a;
}

/* ----- Custom Dropdown Styling (country/state selects) ----- */
.custom-dropdown-list {
    top: calc(100% + 4px);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    background: #fff !important;
}

.custom-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.custom-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-black);
    transition: background 0.2s ease;
}

.custom-dropdown-item:hover {
    background: rgba(45, 90, 39, 0.1);
}

.custom-dropdown-item.selected {
    background: var(--primary);
    color: white;
}

.custom-dropdown input[readonly] {
    caret-color: transparent;
}

/* Mobile Responsive — checkout slides up from bottom instead of right */
@media (max-width: 480px) {
    .checkout-overlay {
        justify-content: center;
        align-items: flex-end;
    }
    .checkout-sheet {
        max-width: 100%;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
        max-height: 80%;
    }
    .checkout-overlay.active .checkout-sheet {
        transform: translateY(0);
    }
}



/* ================================================================
   AUTH PANEL (Login / Signup / Verification / Password Reset)
   ================================================================ */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 16px;
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface, #ffffff);
    border-radius: 24px;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 0.1, 0.64, 1);
    position: fixed;
    overflow-y: auto;
    bottom: 0;
    right: 0;
    height: 100vh;
    border-radius: 0;

}

.auth-overlay.active .auth-card {
    transform: translateY(0) scale(1);
}

.auth-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.2s;
}

.auth-close-btn:hover {
    background: var(--border, #e5e7eb);
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-title {
    font-family: 'Lobster Two', cursive;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary, #2d5a27);
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-brand-sub {
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
    margin: 2px 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.auth-form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #111827);
    margin: 0 0 2px;
}

.auth-form-desc {
    font-size: 13px;
    color: var(--text-secondary, #9ca3af);
    margin: 0 0 20px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text, #111827);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px;
    font-size: 14px;
    background: var(--surface, #ffffff);
    color: var(--text, #111827);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus {
    border-color: var(--primary, #2d5a27);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.auth-field input::placeholder {
    color: var(--text-secondary, #9ca3af);
    opacity: 0.6;
}

@media (max-width: 768px){
    .order-review-box{
        padding: 10px;
    }
.checkout-item-row{
    font-size: 14px;
        gap: 32px;
}
.checkout-header {
    padding: 12px 18px;
}

.auth-card{
    max-height: fit-content;
    position: fixed;
    bottom: 0;
    border-radius: 30px 30px 0 0 !important;
}
}



/* ── Password visibility toggle ───────────────────────────────────── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 44px !important;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #9ca3af);
    transition: color 0.2s;
    min-width: 32px;
    min-height: 32px;
}
.password-toggle:hover {
    color: var(--text, #1f2937);
}
.dark .password-toggle:hover {
    color: #e5e7eb;
}

.auth-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1a3a1a 0%, #2d5a27 100%);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-alt-actions {
    text-align: center;
    margin-top: 14px;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--primary, #2d5a27);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link-btn:hover {
    opacity: 0.8;
}

.auth-switch-text {
    text-align: center;
    font-size: 13px;
    color: var(--text, #9ca3af);
    margin: 18px 0 0;
        display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.auth-toast {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    transition: opacity 0.3s;
}

.auth-toast.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-toast.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-form.hidden {
    display: none;
}

/* ── Dark mode overrides ── */
.dark .auth-card {
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dark .auth-field input {
    background: #262626;
    border-color: #333;
    color: #f9fafb;
}

.dark .auth-field input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

#review-total-price{
    font-family: sans-serif;
}

.dark .auth-toast.error {
    background: #450a0a;
    color: #fca5a5; 
    border-color: #7f1d1d;
}

.dark .auth-toast.success {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
}

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }
    .auth-brand-title {
        font-size: 24px;
    }
}
