/* ===========================================================
   SULTANFFSTORE — main stylesheet
   Mobile-first. Breakpoints: 640px (tablet), 900px (nav), 1024px (desktop)
=========================================================== */

:root{
    --bg:#050505;
    --bg-elevated:#0d0d13;
    --surface:rgba(255,255,255,.05);
    --surface-hover:rgba(255,255,255,.09);
    --border:rgba(255,255,255,.09);

    --purple:#8B5CF6;
    --purple-dim:#6d28d9;
    --blue:#3B82F6;
    --gradient-brand:linear-gradient(135deg,var(--purple),var(--blue));

    --text:#ffffff;
    --text-dim:#b7b7c3;
    --text-mute:#82828d;

    --success:#22c55e;
    --danger:#ef4444;

    --radius-s:10px;
    --radius-m:16px;
    --radius-l:24px;

    --shadow-glow:0 0 40px rgba(139,92,246,.35);
    --shadow-card:0 10px 30px rgba(0,0,0,.35);

    --font-display:'Orbitron',sans-serif;
    --font-body:'Poppins',sans-serif;

    --nav-pad:18px 5%;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:var(--font-body);
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

body.menu-open{
    overflow:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce){
    *{
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
        scroll-behavior:auto !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-track{ background:#0a0a0f; }
::-webkit-scrollbar-thumb{ background:linear-gradient(var(--purple),var(--blue)); border-radius:50px; }

/* Skip link */
.skip-link{
    position:absolute;
    left:-999px;
    top:0;
    background:var(--purple);
    color:#fff;
    padding:12px 20px;
    z-index:10000;
    border-radius:0 0 8px 0;
}
.skip-link:focus{
    left:0;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
    outline:2px solid var(--blue);
    outline-offset:3px;
}

/* ===========================================================
   NAVBAR + HAMBURGER MENU
=========================================================== */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(8,8,14,.7);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid var(--border);
    z-index:999;
}

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

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-display);
    font-size:19px;
    font-weight:800;
    color:#fff;
    letter-spacing:.5px;
    white-space:nowrap;
}

.logo-img{
    height:38px;
    width:38px;
    border-radius:8px;
    object-fit:cover;
}

.logo .accent{
    color:var(--purple);
}

.nav-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width:44px;
    height:44px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    cursor:pointer;
    z-index:1001;
}

.nav-toggle span{
    display:block;
    width:20px;
    height:2px;
    background:#fff;
    border-radius:2px;
    transition:transform .3s ease, opacity .3s ease;
}

.nav-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2){
    opacity:0;
}
.nav-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.nav-links{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(78%,320px);
    background:#0a0a12;
    border-left:1px solid var(--border);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:110px 30px 40px;
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:1000;
}

.nav-links.active{
    transform:translateX(0);
}

.nav-links a{
    width:100%;
    padding:14px 6px;
    color:#ddd;
    font-weight:500;
    font-size:17px;
    border-bottom:1px solid var(--border);
    transition:color .25s;
}

.nav-links a:hover,
.nav-links a.active{
    color:var(--purple);
}

.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
    z-index:998;
}

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

@media (min-width:900px){
    .nav-toggle{ display:none; }

    .nav-overlay{ display:none; }

    .nav-links{
        position:static;
        height:auto;
        width:auto;
        flex-direction:row;
        align-items:center;
        gap:35px;
        background:transparent;
        border-left:none;
        padding:0;
        transform:none;
        transition:none;
    }

    .nav-links a{
        width:auto;
        padding:0;
        border-bottom:none;
        position:relative;
    }

    .nav-links a::after{
        content:"";
        position:absolute;
        left:0;
        bottom:-6px;
        width:0;
        height:2px;
        background:var(--purple);
        transition:width .3s;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after{
        width:100%;
    }

    .logo{ font-size:24px; }
}

/* ===========================================================
   BUTTONS
=========================================================== */

.btn{
    padding:15px 36px;
    border:none;
    border-radius:50px;
    background:var(--gradient-brand);
    color:#fff;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    display:inline-block;
    text-align:center;
    transition:transform .3s, box-shadow .3s;
}

.btn:hover{
    transform:translateY(-4px);
    box-shadow:0 0 25px rgba(139,92,246,.5), 0 0 45px rgba(59,130,246,.35);
}

.btn-outline{
    background:transparent;
    border:2px solid var(--purple);
    padding:13px 34px;
}

.btn-outline:hover{
    background:var(--purple);
}

.btn-whatsapp{
    background:#25D366;
}

.btn-whatsapp:hover{
    box-shadow:0 0 25px rgba(37,211,102,.5);
}

.btn-block{
    display:block;
    width:100%;
}

.btn-sm{
    padding:9px 18px;
    font-size:13px;
}

.btn-row{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}

/* ===========================================================
   HERO
=========================================================== */

.hero{
    position:relative;
    min-height:92vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:140px 6% 80px;
    overflow:hidden;
    background:var(--bg);
}

.hero-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(90px);
    opacity:.35;
    pointer-events:none;
    animation:drift 14s ease-in-out infinite alternate;
}

.hero-glow.g1{
    width:420px;
    height:420px;
    background:var(--purple);
    top:-100px;
    left:-80px;
}

.hero-glow.g2{
    width:380px;
    height:380px;
    background:var(--blue);
    bottom:-120px;
    right:-60px;
    animation-delay:2s;
}

@keyframes drift{
    from{ transform:translate(0,0) scale(1); }
    to{ transform:translate(30px,20px) scale(1.15); }
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
}

.badge{
    display:inline-block;
    padding:9px 20px;
    border-radius:50px;
    border:1px solid rgba(139,92,246,.4);
    background:rgba(139,92,246,.12);
    color:#c9b3ff;
    font-size:13px;
    font-weight:600;
    letter-spacing:.3px;
    margin-bottom:22px;
}

.hero h1{
    font-family:var(--font-display);
    font-size:clamp(32px,7vw,64px);
    font-weight:800;
    line-height:1.15;
    margin-bottom:22px;
    letter-spacing:.5px;
}

.hero p{
    font-size:clamp(15px,2vw,20px);
    color:var(--text-dim);
    line-height:1.8;
    max-width:700px;
    margin:0 auto;
}

.hero-buttons{
    margin-top:38px;
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

/* ===========================================================
   SECTION TITLE + SHARED LAYOUT
=========================================================== */

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-family:var(--font-display);
    font-size:clamp(26px,4vw,40px);
    color:#fff;
    margin-bottom:14px;
    letter-spacing:.3px;
}

.section-title p{
    color:var(--text-mute);
    font-size:16px;
}

.products,
.why,
.reviews{
    padding:80px 6%;
    max-width:1400px;
    margin:0 auto;
}

/* ===========================================================
   PRODUCT GRID / CARDS
=========================================================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:26px;
}

.product-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-l);
    overflow:hidden;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    transition:transform .4s ease, box-shadow .4s ease, border-color .4s ease;
    position:relative;
}

.product-card::before{
    content:"";
    position:absolute;
    top:-120%;
    left:-40%;
    width:60%;
    height:300%;
    background:rgba(255,255,255,.10);
    transform:rotate(25deg);
    transition:left .8s;
    pointer-events:none;
}

.product-card:hover::before{
    left:130%;
}

.product-card:hover{
    transform:translateY(-12px);
    border-color:var(--purple);
    box-shadow:0 0 20px rgba(139,92,246,.4), 0 0 50px rgba(59,130,246,.25);
}

.product-card .card-img-wrap{
    position:relative;
    overflow:hidden;
}

.product-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    background:#161616;
    transition:transform .5s ease;
}

.product-card:hover img{
    transform:scale(1.08);
}

.status-badge{
    position:absolute;
    top:12px;
    right:12px;
    padding:5px 14px;
    border-radius:50px;
    font-size:12px;
    font-weight:600;
    backdrop-filter:blur(6px);
}

.status-badge.available{
    background:rgba(34,197,94,.18);
    color:#4ade80;
    border:1px solid rgba(34,197,94,.4);
}

.status-badge.sold{
    background:rgba(239,68,68,.18);
    color:#f87171;
    border:1px solid rgba(239,68,68,.4);
}

.product-info{
    padding:22px;
}

.product-info h3{
    font-size:20px;
    margin-bottom:10px;
    font-weight:600;
}

.product-info p{
    color:var(--text-dim);
    line-height:1.6;
    margin-bottom:18px;
    font-size:14px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.price{
    font-size:24px;
    font-weight:700;
    background:var(--gradient-brand);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    margin-bottom:18px;
}

.empty-state{
    text-align:center;
    color:var(--text-mute);
    padding:60px 20px;
    grid-column:1/-1;
}

/* ===========================================================
   WHY CHOOSE US
=========================================================== */

.why .product-card{
    text-align:center;
    padding:36px 26px;
}

.why .product-card h3{
    font-size:22px;
    margin-bottom:14px;
}

.why .product-card p{
    color:var(--text-dim);
    line-height:1.8;
    font-size:14px;
    -webkit-line-clamp:unset;
}

/* ===========================================================
   STATS
=========================================================== */

.stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:26px;
    padding:60px 6%;
    max-width:1200px;
    margin:0 auto;
    text-align:center;
}

.stat-box h2{
    font-family:var(--font-display);
    font-size:clamp(28px,4vw,42px);
    background:var(--gradient-brand);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    margin-bottom:6px;
}

.stat-box p{
    color:var(--text-mute);
    font-size:14px;
}

@media (min-width:640px){
    .stats{ grid-template-columns:repeat(4,1fr); }
}

/* ===========================================================
   REVIEWS
=========================================================== */

.review-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:26px;
}

.review-card{
    background:var(--surface);
    border:1px solid var(--border);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);
    border-radius:var(--radius-l);
    padding:30px;
    transition:transform .4s, box-shadow .4s;
}

.review-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 35px rgba(59,130,246,.3);
}

.stars{
    color:var(--purple);
    font-size:18px;
    letter-spacing:2px;
    margin-bottom:16px;
}

.review-card p{
    color:#ccc;
    line-height:1.8;
    margin-bottom:16px;
    font-size:14px;
}

.review-card span{
    color:var(--purple);
    font-weight:600;
    font-size:14px;
}

/* ===========================================================
   ABOUT / CONTACT (reuses .why section styling)
=========================================================== */

.contact-list{
    margin-top:20px;
    display:inline-flex;
    flex-direction:column;
    gap:10px;
    text-align:left;
}

.contact-list a{
    color:var(--purple);
}

.contact-list a:hover{
    text-decoration:underline;
}

/* ===========================================================
   FOOTER
=========================================================== */

.footer{
    background:var(--bg-elevated);
    margin-top:60px;
    padding:60px 6% 20px;
    border-top:1px solid var(--border);
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:36px;
    max-width:1400px;
    margin:0 auto;
}

.footer-box h2{
    font-family:var(--font-display);
    color:#fff;
    margin-bottom:18px;
    font-size:24px;
}

.footer-box h2 span{
    color:var(--purple);
}

.footer-box h3{
    color:#fff;
    margin-bottom:18px;
    font-size:16px;
}

.footer-box p{
    color:var(--text-mute);
    line-height:1.9;
    font-size:14px;
}

.footer-box ul li{
    margin-bottom:10px;
}

.footer-box ul li a{
    color:var(--text-mute);
    font-size:14px;
    transition:color .3s;
}

.footer-box ul li a:hover{
    color:var(--purple);
}

.footer-bottom{
    margin-top:36px;
    text-align:center;
    color:#666;
    font-size:13px;
    border-top:1px solid var(--border);
    padding-top:20px;
}

/* ===========================================================
   FLOATING BUTTONS
=========================================================== */

.whatsapp-float{
    position:fixed;
    width:56px;
    height:56px;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    text-align:center;
    font-size:26px;
    line-height:56px;
    box-shadow:0 4px 18px rgba(0,0,0,.4);
    z-index:900;
    transition:transform .3s;
}

.whatsapp-float:hover{
    transform:scale(1.08);
}

.back-to-top{
    position:fixed;
    bottom:20px;
    left:20px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:var(--surface);
    border:1px solid var(--border);
    backdrop-filter:blur(10px);
    color:#fff;
    font-size:18px;
    cursor:pointer;
    z-index:900;
    opacity:0;
    pointer-events:none;
    transform:translateY(10px);
    transition:opacity .3s, transform .3s;
}

.back-to-top.visible{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
}

/* ===========================================================
   FLASH MESSAGES
=========================================================== */

.flash{
    max-width:900px;
    margin:110px auto 0;
    padding:16px 20px;
    border-radius:var(--radius-s);
    font-size:14px;
    font-weight:500;
}

.flash-success{
    background:rgba(34,197,94,.12);
    border:1px solid rgba(34,197,94,.4);
    color:#4ade80;
}

.flash-error{
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.4);
    color:#f87171;
}

/* ===========================================================
   FORMS (checkout, contact-style forms)
=========================================================== */

.form-card{
    max-width:640px;
    margin:130px auto 80px;
    background:var(--surface);
    border:1px solid var(--border);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    padding:36px;
    border-radius:var(--radius-l);
}

.form-card h1{
    font-family:var(--font-display);
    font-size:28px;
    margin-bottom:22px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    font-size:13px;
    color:var(--text-dim);
    margin-bottom:8px;
    font-weight:500;
}

.form-control{
    width:100%;
    padding:13px 16px;
    background:rgba(255,255,255,.06);
    border:1px solid var(--border);
    border-radius:var(--radius-s);
    color:#fff;
    font-size:15px;
    font-family:var(--font-body);
    transition:border-color .25s;
}

.form-control:focus{
    border-color:var(--purple);
    outline:none;
}

.form-control::placeholder{
    color:var(--text-mute);
}

textarea.form-control{
    resize:vertical;
    min-height:110px;
}

.order-summary{
    display:flex;
    gap:16px;
    align-items:center;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    border-radius:var(--radius-m);
    padding:16px;
    margin-bottom:26px;
}

.order-summary img{
    width:84px;
    height:84px;
    object-fit:cover;
    border-radius:var(--radius-s);
    flex-shrink:0;
}

.order-summary .price{
    margin-bottom:0;
    font-size:20px;
}

/* ===========================================================
   PRODUCT DETAIL PAGE
=========================================================== */

.product-details{
    display:grid;
    grid-template-columns:1fr;
    gap:40px;
    padding:130px 6% 80px;
    max-width:1200px;
    margin:0 auto;
}

.product-gallery img.main-image{
    width:100%;
    border-radius:var(--radius-l);
    aspect-ratio:4/3;
    object-fit:cover;
    background:#111;
}

.thumb-row{
    display:flex;
    gap:12px;
    margin-top:14px;
    flex-wrap:wrap;
}

.thumb{
    width:76px;
    height:76px;
    border-radius:var(--radius-s);
    object-fit:cover;
    cursor:pointer;
    border:2px solid var(--border);
    transition:border-color .25s, transform .25s;
}

.thumb:hover{
    transform:translateY(-3px);
}

.thumb.active{
    border-color:var(--purple);
}

.product-detail-info h1{
    font-family:var(--font-display);
    font-size:clamp(24px,3.5vw,34px);
    margin-bottom:14px;
}

.product-detail-info .price{
    font-size:30px;
    margin-bottom:16px;
}

.product-detail-info .description{
    color:var(--text-dim);
    line-height:1.8;
    margin-bottom:20px;
    font-size:15px;
}

.product-detail-info .status-line{
    margin-bottom:24px;
    font-size:14px;
    color:var(--text-dim);
}

@media (min-width:900px){
    .product-details{
        grid-template-columns:1.1fr 1fr;
        align-items:start;
    }
}

/* ===========================================================
   404 PAGE
=========================================================== */

.error-page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:140px 6% 80px;
}

.error-page .error-code{
    font-family:var(--font-display);
    font-size:clamp(70px,15vw,140px);
    font-weight:900;
    background:var(--gradient-brand);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    line-height:1;
}

.error-page h1{
    font-size:24px;
    margin:16px 0;
}

.error-page p{
    color:var(--text-dim);
    max-width:480px;
    margin-bottom:28px;
}

/* ===========================================================
   SCROLL REVEAL
=========================================================== */

.reveal{
    opacity:0;
    transform:translateY(24px);
    transition:opacity .7s ease, transform .7s ease;
}

.reveal.in-view{
    opacity:1;
    transform:translateY(0);
}

/* ===========================================================
   RESPONSIVE — TABLET
=========================================================== */

@media (min-width:640px){
    .stats{ text-align:center; }
    .form-card{ padding:44px; }
}

/* ===========================================================
   RESPONSIVE — DESKTOP
=========================================================== */

@media (min-width:1024px){
    .hero{ padding:160px 8% 100px; }
    .products,.why,.reviews{ padding:110px 8%; }
}
