
/* =========================================
   MEHRAJ STORE
   Toggle Wars 2026
   Premium E-commerce A/B Testing
========================================= */

:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-alt: #eef0f4;
    --text: #141414;
    --muted: #71717a;
    --accent: #171717;
    --accent-hover: #333333;
    --button-text: #ffffff;
    --border: #e4e4e7;
    --shadow: 0 10px 35px rgba(0,0,0,0.07);
    --radius: 16px;
    --transition: 0.3s ease;
}

/* Premium A/B Testing Theme */

body.premium-layout {
    --bg: #090909;
    --surface: #141414;
    --surface-alt: #1d1d1d;
    --text: #f5f5f5;
    --muted: #a1a1aa;
    --accent: #d4af37;
    --accent-hover: #f2cf65;
    --button-text: #090909;
    --border: #303030;
    --shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Outfit", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

[hidden] {
    display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #b99127;
    outline-offset: 4px;
}

::selection {
    background: #d4af37;
    color: #000;
}

/* Announcement */

.announcement {
    background: var(--accent);
    color: var(--button-text);
    text-align: center;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Navigation */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1440px;
    margin: auto;
    min-height: 80px;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo span,
.footer-brand span {
    color: #b99127;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #b99127;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions button {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 19px;
}

.nav-actions button:hover {
    color: #b99127;
}

.nav-actions button span {
    position: absolute;
    top: -9px;
    right: -10px;
    background: #d4af37;
    color: #000;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

#menuBtn {
    display: none;
}

/* Search Panel */

.search-panel {
    display: none;
    padding: 20px 5%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 15px;
}

.search-panel.active {
    display: flex;
}

.search-panel input {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.search-panel button {
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 22px;
}

/* Hero */

.hero {
    max-width: 1440px;
    margin: auto;
    min-height: 620px;
    padding: 65px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    animation: fadeUp 0.8s ease both;
}

.hero-badge {
    display: inline-block;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: 1.08;
    letter-spacing: -3px;
    margin: 25px 0;
    font-weight: 800;
}

.hero p {
    max-width: 500px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.primary-btn {
    background: var(--accent);
    color: var(--button-text);
    border: 1px solid var(--accent);
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    border-color: #d4af37;
    transform: translateY(-3px);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 35px;
    color: var(--muted);
    font-size: 13px;
}

.hero-benefits i {
    color: #b99127;
    margin-right: 5px;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-image img {
    height: 500px;
    transition: transform 0.7s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Premium Hero */

.premium-layout .hero {
    min-height: 690px;
}

.premium-layout .hero h1 {
    background: linear-gradient(
        135deg,
        #ffffff,
        #d4af37,
        #f5dd96
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.premium-layout .hero-image {
    border: 1px solid #806b2b;
    box-shadow: 0 0 60px rgba(212,175,55,0.1);
}

.premium-layout .hero-badge {
    color: #d4af37;
    border-color: #806b2b;
}

/* Benefits */

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 35px 5%;
    gap: 25px;
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.benefit i {
    color: #b99127;
    font-size: 28px;
}

.benefit h3 {
    font-size: 15px;
    font-weight: 600;
}

.benefit p {
    font-size: 12px;
    color: var(--muted);
}

/* Common Sections */

.section {
    max-width: 1440px;
    margin: auto;
    padding: 85px 5%;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading > span {
    font-size: 11px;
    font-weight: 700;
    color: #b99127;
    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 10px 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
}

/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 45px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card i {
    font-size: 36px;
    color: #b99127;
    margin-bottom: 18px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
}

/* Product Filters */

.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--button-text);
    border-color: var(--accent);
}

/* Product Cards */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-7px);
    border-color: #b99127;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: var(--surface-alt);
}

.product-image img,
.product-card > img {
    height: 270px;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.07);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d4af37;
    color: #000;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
}

.wishlist-icon,
.wishlist-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    z-index: 2;
}

.wishlist-icon.active,
.wishlist-button.active {
    color: #e63946;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 8px 0;
}

.product-rating {
    color: #b99127;
    font-size: 12px;
    margin-bottom: 10px;
}

.product-price,
.price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.add-to-cart,
.view-product {
    flex: 1;
    padding: 11px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart {
    background: var(--accent);
    color: var(--button-text);
    border: 1px solid var(--accent);
}

.view-product {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.add-to-cart:hover,
.view-product:hover {
    opacity: 0.85;
}

.premium-layout .product-card {
    border-color: #39301b;
}

.premium-layout .product-card:hover {
    box-shadow: 0 10px 35px rgba(212,175,55,0.12);
}

/* Recommendations */

.recommendations {
    border-top: 1px solid var(--border);
}

/* Promotional Banner */

.promo-banner {
    margin: 20px 5% 60px;
    min-height: 380px;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.9),
            rgba(0,0,0,0.25)
        ),
        url("https://images.unsplash.com/photo-1483985988355-763728e1935b?w=1600&auto=format&fit=crop")
        center/cover;
    color: white;
}

.promo-banner span {
    color: #e6c76a;
    font-size: 12px;
    letter-spacing: 3px;
}

.promo-banner h2 {
    max-width: 650px;
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.1;
    margin: 15px 0;
}

.promo-banner p {
    color: #dddddd;
    margin-bottom: 25px;
}

.promo-banner .primary-btn {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

/* About */

.about {
    text-align: center;
}

.about .section-heading {
    margin-bottom: 20px;
}

.about > p {
    max-width: 750px;
    margin: auto;
    color: var(--muted);
    font-size: 17px;
}

/* Newsletter */

.newsletter {
    background: var(--surface-alt);
    text-align: center;
    padding: 65px 5%;
    border-top: 1px solid var(--border);
}

.newsletter h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.newsletter p {
    color: var(--muted);
    margin: 10px 0 25px;
}

.newsletter form {
    max-width: 550px;
    margin: auto;
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
}

.newsletter button {
    background: var(--accent);
    color: var(--button-text);
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    font-weight: 600;
}

/* Overlay */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart & Wishlist */

.cart-drawer,
.wishlist-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100dvh;
    background: var(--surface);
    z-index: 300;
    transform: translateX(105%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.cart-drawer.active,
.wishlist-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
    font-size: 22px;
}

.drawer-header button {
    background: transparent;
    color: var(--text);
    border: none;
    font-size: 23px;
}

#cartItems,
#wishlistItems {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item,
.wishlist-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img,
.wishlist-item img {
    width: 75px;
    height: 85px;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-controls button,
.remove-item {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 5px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
}

.cart-footer .primary-btn {
    width: 100%;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 50px 15px;
}

/* Product Modal */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.65);
}

.modal-content {
    position: relative;
    width: 850px;
    max-width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

#closeModal {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: var(--surface-alt);
    color: var(--text);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    z-index: 5;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.product-detail-grid img {
    border-radius: 12px;
    max-height: 400px;
}

.product-detail-grid h2 {
    margin: 15px 0;
}

.product-detail-grid p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* Toast Notifications */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: var(--accent);
    color: var(--button-text);
    padding: 14px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    z-index: 500;
    transition: var(--transition);
    max-width: 90%;
    text-align: center;
}

.toast.active,
.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

/* Footer */

.footer {
    background: #0c0c0c;
    color: #ffffff;
    padding: 65px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1440px;
    margin: auto;
}

.footer-brand h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer h3 {
    font-size: 17px;
    margin-bottom: 20px;
}

.footer p,
.footer a {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.9;
}

.footer a {
    display: block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links i {
    width: 38px;
    height: 38px;
    border: 1px solid #333;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.footer-bottom {
    border-top: 1px solid #292929;
    margin-top: 45px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#experimentStatus {
    color: #d4af37;
    font-size: 12px;
}

/* Animations */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Responsive */

@media (max-width: 1100px) {

    .nav-links {
        gap: 18px;
    }

    .hero {
        gap: 30px;
    }

    .hero-image img {
        height: 420px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit {
        justify-content: flex-start;
    }
}

/* Mobile Navigation */

@media (max-width: 850px) {

    #menuBtn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 25px 5%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 45px 5%;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-image img {
        height: 380px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile Devices */

@media (max-width: 480px) {

    .navbar {
        min-height: 65px;
        gap: 10px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-actions {
        gap: 15px;
    }

    .nav-actions button {
        font-size: 16px;
    }

    .announcement {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-image img {
        height: 290px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        padding: 13px 17px;
        font-size: 12px;
    }

    .benefits {
        gap: 20px 12px;
        padding: 25px 5%;
    }

    .benefit {
        gap: 8px;
    }

    .benefit i {
        font-size: 20px;
    }

    .benefit h3 {
        font-size: 12px;
    }

    .benefit p {
        font-size: 10px;
    }

    .section {
        padding: 55px 5%;
    }

    .category-grid,
    .product-grid {
        gap: 12px;
    }

    .category-card {
        padding: 30px 12px;
    }

    .product-image img,
    .product-card > img {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-price,
    .price {
        font-size: 16px;
    }

    .product-actions {
        flex-direction: column;
    }

    .promo-banner {
        padding: 30px;
        min-height: 300px;
    }

    .newsletter form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #b99127;
    border-radius: 10px;
}

/* CUSTOMER FEEDBACK BUTTON */

.feedback-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #111;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(212,175,55,0.4);
    z-index: 9999;
    transition: 0.3s ease;
}

.feedback-button:hover {
    transform: translateY(-4px);
    background: #fff;
    color: #111;
}

@media (max-width: 600px) {
    .feedback-button {
        bottom: 80px;
        right: 12px;
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* End of MEHRAJ STORE CSS */
