:root {
    /* ✅ Sharp Colors */
    --bg-1: #070A16;
    --bg-2: #0B1B2B;
    --glass: rgba(255, 255, 255, .08);
    --glass-2: rgba(255, 255, 255, .12);
    --border: rgba(255, 255, 255, .18);

    --text: #EAF1FF;
    --muted: rgba(234, 241, 255, .72);

    --accent: #00E5FF;
    /* Cyan sharp */
    --accent2: #FF2DAA;
    /* Pink sharp */
    --accent3: #7CFF6B;
    /* Green sharp */

    --shadow: 0 18px 60px rgba(0, 0, 0, .55);
    --radius: 18px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;

    /* ✅ Background with sharp gradients */
    background:
        radial-gradient(900px 600px at 10% 10%, rgba(0, 229, 255, .22), transparent 60%),
        radial-gradient(900px 600px at 90% 20%, rgba(255, 45, 170, .18), transparent 60%),
        radial-gradient(900px 600px at 60% 100%, rgba(124, 255, 107, .14), transparent 60%),
        linear-gradient(120deg, var(--bg-1), var(--bg-2));
}

/* ✅ Soft noise overlay (glass vibe) */
body:before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: .35;
    z-index: -1;
}

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

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* ✅ Glass Card */
.glass {
    background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, .03));
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Top bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-top: 18px;
    position: relative;
    z-index: 1001;
}

.topbar .left {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
}

.pill {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
}

.lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header */
header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 18px;
    margin: 14px 0 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%),
        radial-gradient(circle at 70% 70%, var(--accent2), transparent 60%),
        rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 10px 30px rgba(0, 229, 255, .18);
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: .3px;
    color: var(--text);
}

.brand p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.search {
    flex: 1;
    display: flex;
    max-width: 520px;
    margin: 0 18px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
}

.search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.search button {
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 229, 255, .35), rgba(255, 45, 170, .25));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .35);
    transition: .2s ease;
    display: grid;
    place-items: center;
}

.search button:hover {
    transform: translateY(-1px);
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.iconbtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: .2s ease;
    position: relative;
    color: var(--text);
}

.iconbtn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .09);
    color: var(--accent);
}

.badge {
    position: absolute;
    top: -7px;
    right: -7px;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 229, 255, .9), rgba(255, 45, 170, .9));
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
    color: white;
}

/* Layout */
.main {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 30px;
}

/* Sidebar */
aside {
    padding: 16px;
}

.aside-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aside-title h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: .2px;
}

.aside-title span {
    font-size: 12px;
    color: var(--muted);
}

.cat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.cat a {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    transition: .2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
}

.cat a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    border-color: rgba(255, 255, 255, .22);
}

.chip {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 229, 255, .12);
    border: 1px solid rgba(0, 229, 255, .22);
    color: rgba(234, 241, 255, .9);
}

.promo {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        radial-gradient(260px 220px at 15% 20%, rgba(0, 229, 255, .18), transparent 60%),
        radial-gradient(240px 220px at 85% 70%, rgba(255, 45, 170, .16), transparent 60%),
        rgba(255, 255, 255, .05);
}

.promo h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.promo p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.promo .cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: linear-gradient(135deg, rgba(0, 229, 255, .22), rgba(255, 45, 170, .16));
    cursor: pointer;
    transition: .2s ease;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}

.promo .cta:hover {
    transform: translateY(-1px);
}

/* Content */
.content {
    padding: 16px;
}

/* Navbar */
.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    margin-bottom: 14px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: .2s ease;
    font-size: 14px;
}

.nav a.active {
    color: var(--text);
    border-color: rgba(0, 229, 255, .25);
    background: rgba(0, 229, 255, .10);
    box-shadow: 0 14px 30px rgba(0, 229, 255, .08);
}

.nav a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
}

/* Hero slider (static look) */
.hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65)),
        url("https://images.unsplash.com/photo-1528701800489-20be9c2db9a8?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
    height: 330px;
    box-shadow: var(--shadow);
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 400px at 20% 20%, rgba(0, 229, 255, .22), transparent 55%),
        radial-gradient(700px 400px at 80% 70%, rgba(255, 45, 170, .18), transparent 58%);
    pointer-events: none;
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    z-index: 1;
}

.hero-card {
    width: min(540px, 92%);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
}

.hero-card small {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 229, 255, .10);
    color: rgba(234, 241, 255, .9);
    letter-spacing: .5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-card h2 {
    margin: 0 0 6px;
    font-size: 34px;
    letter-spacing: .2px;
    line-height: 1.1;
    color: white;
}

.hero-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

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

.btn {
    border: 0;
    cursor: pointer;
    padding: 11px 14px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: .2px;
    transition: .2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(0, 229, 255, .45), rgba(255, 45, 170, .35));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .4);
}

.btn.primary:hover {
    transform: translateY(-1px);
}

.btn.secondary {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(234, 241, 255, .92);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateY(-1px);
}

/* Products */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}

.section-title h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: .2px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.product {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    transition: .22s ease;
    overflow: hidden;
    position: relative;
}

.product:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}

.thumb {
    height: 150px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
    position: relative;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.1);
    transform: scale(1.03);
}

.thumb:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
    pointer-events: none;
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(0, 229, 255, .12);
    border: 1px solid rgba(0, 229, 255, .25);
    backdrop-filter: blur(10px);
}

.product h4 {
    margin: 12px 0 6px;
    font-size: 14px;
    letter-spacing: .2px;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.price {
    color: var(--text);
    font-weight: 800;
    letter-spacing: .3px;
}

.quick {
    display: flex;
    gap: 10px;
}

.mini {
    flex: 1;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    transition: .2s ease;
    font-weight: 600;
    color: rgba(234, 241, 255, .92);
    border: 0;
    display: grid;
    place-items: center;
}

.mini:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .09);
}

/* Glass Table */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.glass-table th {
    color: var(--muted);
    font-weight: 500;
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.glass-table td {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    vertical-align: middle;
}

.glass-table tr td:first-child {
    border-radius: 14px 0 0 14px;
}

.glass-table tr td:last-child {
    border-radius: 0 14px 14px 0;
}

/* Glass Inputs */
.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
}

.form-control:focus {
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.mini.accent {
    background: linear-gradient(135deg, rgba(0, 229, 255, .22), rgba(255, 45, 170, .16));
    border-color: rgba(255, 255, 255, .22);
}

.btn.danger {
    background: linear-gradient(135deg, #FF4B2B, #FF416C);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
}

.btn.danger:hover {
    transform: translateY(-1px);
}

.btn.outline-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn.outline-primary:hover {
    background: rgba(0, 229, 255, .1);
    transform: translateY(-1px);
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--accent) !important;
}

.text-muted {
    color: var(--muted) !important;
}

/* Footer */
footer {
    margin: 22px 0 30px;
    padding: 16px;
    text-align: center;
    color: rgba(234, 241, 255, .6);
    font-size: 13px;
}

/* Responsive */
/* Responsive */
@media (max-width: 980px) {
    .main {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Topbar Stacking */
    .topbar {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 12px;
    }

    .topbar .left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Header Vertical Stack */
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        margin-top: 0;
    }

    .brand {
        justify-content: center;
        text-align: center;
    }

    .search {
        order: 2;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .actions {
        order: 3;
        display: flex;
        justify-content: center;
        gap: 16px;
    }

    /* Navbar/Menu Wrap */
    .nav {
        justify-content: center;
        padding: 8px;
    }

    .nav a {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 10px;
    }

    /* Hero Responsive */
    .hero {
        height: auto;
        min-height: 380px;
    }

    .hero-inner {
        position: relative;
        padding: 16px;
    }

    .hero-card {
        width: 100%;
        backdrop-filter: blur(16px);
        /* Stronger blur for readability */
    }

    .hero-card h2 {
        font-size: 28px;
    }

    .btn-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Mobile Grid */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Performance: Reduce Blur Cost */
    .glass,
    .hero-card,
    .topbar,
    .nav,
    .product,
    .thumb {
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        box-shadow: none !important;
        /* Reduce shadow cost */
    }

    /* Typography Adjustments */
    .brand h1 {
        font-size: 20px;
    }

    .section-title h3 {
        font-size: 15px;
    }

    /* Card Padding */
    .glass,
    .product,
    .content {
        padding: 14px;
    }

    /* Thumbnails */
    .thumb {
        height: 180px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    /* Ensure no horizontal overflow */
    .container {
        width: 94vw;
        padding: 0;
    }
}

/* =========================================
   FINAL RESPONSIVE UI PACK
   ========================================= */

/* 1. Payment Method Dropdown Fix */
select.form-control,
#payment_method {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-1) !important;
    color: var(--text) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EAF1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-2);
    /* Dark background for options */
    color: var(--text);
    padding: 10px;
}

select.form-control:focus {
    border-color: var(--accent) !important;
    outline: none;
}

/* 2. Cart Page - Mobile Card Layout */
@media (max-width: 768px) {

    .glass-table,
    .glass-table tbody,
    .glass-table tr,
    .glass-table td {
        display: block;
        width: 100%;
    }

    .glass-table thead {
        display: none;
        /* Hide headers */
    }

    .glass-table tr {
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 10px;
        position: relative;
    }

    .glass-table td {
        display: flex;
        /* Flex to align label and content */
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .glass-table tr td:last-child {
        border-bottom: none;
        border-radius: 0;
    }

    .glass-table tr td:first-child {
        border-radius: 0;
    }

    /* Add Labels via Data Attribute */
    .glass-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
        text-align: left;
        margin-right: 1rem;
        font-size: 13px;
        text-transform: uppercase;
        flex: 1;
        /* Ensure label takes space */
    }

    .glass-table td img {
        width: 40px !important;
        height: 40px !important;
    }

    /* Quantity Input Fix */
    .quantity {
        width: 90px !important;
    }

    /* Cart Summary Mobile */
    .col-lg-4 .glass {
        margin-bottom: 2rem;
    }
}

/* 3. Wishlist Fixes */
@media (max-width: 768px) {
    #wishlist-container .thumb {
        height: 200px !important;
        /* Reduce height on mobile */
    }

    #wishlist-container .quick {
        flex-wrap: wrap;
        /* Allow buttons to stack if needed */
        gap: 8px;
    }

    #wishlist-container .quick .mini {
        flex: 1 1 100%;
        /* Full width buttons on small screens */
        justify-content: center;
    }
}

/* 4. Product Detail Fixes */
@media (max-width: 768px) {
    #productImage {
        max-height: 350px !important;
        width: 100%;
        object-fit: cover;
    }

    .glass.p-5 {
        padding: 1.5rem !important;
        /* Reduce padding on description box */
    }

    .row.pt-5 {
        padding-top: 1rem !important;
        /* Reduce top padding on mobile */
    }
}