/* ==========================================================================
   CampusCart — Premium Campus Marketplace
   HTML5 + CSS3
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    --accent: #FF5A1F;
    --accent-dark: #E14A12;
    --accent-light: #FFE7DA;

    --accent-glow: rgba(255, 90, 31, 0.35);

    --bg: #FFFFFF;
    --bg-soft: #FAF8F6;

    --ink: #14120F;
    --ink-muted: #6E685F;
    --ink-faint: #A79F93;

    --border: #ECE6DD;
    --border-strong: #DED5C7;

    --gold: #F5A623;
    --success: #23A566;

    --shadow-sm: 0 2px 10px rgba(20, 18, 15, 0.05);
    --shadow-md: 0 12px 30px rgba(20, 18, 15, 0.08);
    --shadow-lg: 0 24px 60px rgba(20, 18, 15, 0.14);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --font-display: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);
}


/* ============================================================
MY PROFILE MODAL
============================================================ */

.profile-modal-overlay {
position: fixed;
inset: 0;
background: rgba(11, 22, 40, 0.55);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
z-index: 9999;

opacity: 0;
visibility: hidden;
pointer-events: none;

transition: opacity 0.25s ease,
            visibility 0.25s ease;

}

.profile-modal-overlay.active {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

body.profile-modal-open {
overflow: hidden;
}

.profile-modal {
width: min(680px, 100%);
max-height: 90vh;
overflow-y: auto;

background: #ffffff;
border-radius: 24px;

box-shadow:
    0 25px 80px rgba(11, 22, 40, 0.25);

transform: translateY(20px) scale(0.97);

transition: transform 0.25s ease;

}

.profile-modal-overlay.active .profile-modal {
transform: translateY(0) scale(1);
}

/* HEADER */

.profile-modal-header {
display: flex;
justify-content: space-between;
align-items: flex-start;


padding: 26px 28px 20px;

border-bottom: 1px solid #eeeeee;


}

.profile-modal-header h2 {
margin: 5px 0 0;
font-family: "Clash Display", sans-serif;
font-size: 28px;
color: #0B1628;
}

.profile-close {
width: 40px;
height: 40px;


border: none;
border-radius: 50%;

background: #f5f5f5;

font-size: 25px;
cursor: pointer;

transition: 0.2s ease;


}

.profile-close:hover {
background: #FF5A1F;
color: white;
}

/* PROFILE SUMMARY */

.profile-summary {
display: flex;
align-items: center;
gap: 18px;


padding: 25px 28px;

background: #FFF3ED;


}

.profile-avatar {
width: 70px;
height: 70px;


border-radius: 50%;

display: flex;
align-items: center;
justify-content: center;

background: #FF5A1F;
color: white;

font-size: 27px;
font-weight: 800;


}

.profile-summary-info h3 {
margin: 0 0 4px;


font-family: "Clash Display", sans-serif;
font-size: 21px;
color: #0B1628;


}

.profile-summary-info p {
margin: 0 0 8px;

color: #667085;
font-size: 14px;

}

.profile-badge {
display: inline-block;


padding: 5px 10px;

border-radius: 20px;

background: #0B1628;
color: white;

font-size: 11px;
font-weight: 700;


}

/* SECTIONS */

.profile-section {
padding: 22px 28px;


border-bottom: 1px solid #eeeeee;


}

.profile-section h3 {
margin: 0 0 15px;


font-size: 16px;
color: #0B1628;


}

/* INFORMATION */

.profile-info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

.profile-info-item {
padding: 14px;


border: 1px solid #eeeeee;
border-radius: 12px;

background: #fafafa;


}

.profile-info-item span {
display: block;


margin-bottom: 5px;

color: #777;
font-size: 12px;


}

.profile-info-item strong {
color: #0B1628;
font-size: 14px;
}

/* ACTIONS */

.profile-action-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

.profile-action-btn {
display: flex;
align-items: center;
gap: 12px;


width: 100%;

padding: 15px;

background: white;

border: 1px solid #eeeeee;
border-radius: 14px;

text-decoration: none;
text-align: left;

cursor: pointer;

transition: 0.2s ease;


}

.profile-action-btn:hover {
border-color: #FF5A1F;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(11, 22, 40, 0.08);
}

.action-icon {
width: 40px;
height: 40px;

display: flex;
align-items: center;
justify-content: center;

background: #FFF3ED;
border-radius: 10px;

font-size: 18px;


}

.profile-action-btn strong {
display: block;


color: #0B1628;
font-size: 14px;


}

.profile-action-btn small {
display: block;


margin-top: 3px;

color: #777;
font-size: 11px;


}

/* SELLER */

.profile-seller-btn {
display: flex;
align-items: center;
gap: 13px;


padding: 15px;

background: #0B1628;
color: white;

border-radius: 14px;

text-decoration: none;

transition: 0.2s ease;


}

.profile-seller-btn:hover {
transform: translateY(-2px);
}

.profile-seller-btn > span {
font-size: 22px;
}

.profile-seller-btn strong {
display: block;
}

.profile-seller-btn small {
display: block;


margin-top: 3px;

opacity: 0.7;
font-size: 11px;


}

/* LOGOUT */

.profile-logout-section {
padding: 20px 28px 25px;
}

.profile-logout-btn {
display: block;


width: 100%;

padding: 14px;

border: 1px solid #ffdddd;
border-radius: 12px;

background: #fff7f7;
color: #d92d20;

text-align: center;
text-decoration: none;

font-weight: 700;

transition: 0.2s ease;


}

.profile-logout-btn:hover {
background: #d92d20;
color: white;
}

/* MOBILE */

@media (max-width: 600px) {


.profile-modal {
    max-height: 94vh;
    border-radius: 20px;
}

.profile-modal-header,
.profile-section,
.profile-logout-section {
    padding-left: 20px;
    padding-right: 20px;
}

.profile-summary {
    padding: 20px;
}

.profile-info-grid,
.profile-action-grid {
    grid-template-columns: 1fr;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    font-size: 22px;
}


}


/* ==========================================================================
   2. RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

button,
input {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px;
}

.section-head {
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;

    background: var(--accent-light);
    color: var(--accent-dark);

    border-radius: var(--r-pill);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-head h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
}

.section-head p {
    color: var(--ink-muted);
    font-size: 16px;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 15px 28px;

    border: 2px solid transparent;
    border-radius: var(--r-pill);

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease),
        background .25s var(--ease),
        color .25s var(--ease),
        border-color .25s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-dark);
    box-shadow: 0 16px 34px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-3px);
}

.btn-light {
    background: #fff;
    color: var(--accent-dark);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    width: 100%;
    padding: 10px 20px;
    font-size: 13px;
}


/* ==========================================================================
   6. NAVBAR
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;

    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    flex-shrink: 0;

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    position: relative;
    padding: 6px 2px;

    color: var(--ink-muted);

    font-size: 14px;
    font-weight: 600;

    transition: color .2s var(--ease);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;

    height: 2px;

    background: var(--accent);
    border-radius: 2px;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}


/* ==========================================================================
   7. NAVBAR SEARCH (desktop)
   ========================================================================== */

.navbar-search {
    flex: 1;
    max-width: 380px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);

    transition:
        border-color .2s var(--ease),
        box-shadow .2s var(--ease);
}

.navbar-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.navbar-search svg {
    width: 16px;
    height: 16px;
    color: var(--ink-faint);
    flex-shrink: 0;
}

.navbar-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--ink);
    font-size: 14px;
}


/* ==========================================================================
   8. NAV ACTIONS
   ========================================================================== */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-link {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--ink-muted);

    transition:
        background .2s var(--ease),
        color .2s var(--ease),
        transform .2s var(--ease);
}

.icon-link svg {
    width: 19px;
    height: 19px;
}

.icon-link:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;

    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    font-size: 10px;
    font-weight: 700;
}


/* ==========================================================================
   8b. ACCOUNT DROPDOWN (holds profile links + logout)
   ========================================================================== */

.account-dropdown {
    position: relative;
}

.account-toggle {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    min-width: 200px;

    padding: 8px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
        opacity .2s var(--ease),
        transform .2s var(--ease),
        visibility .2s;

    z-index: 200;
}

.account-dropdown.open .account-toggle {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.account-dropdown.open .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-item {
    display: block;

    padding: 10px 12px;

    border-radius: var(--r-sm);

    color: var(--ink-muted);

    font-size: 13.5px;
    font-weight: 600;

    transition:
        background .2s var(--ease),
        color .2s var(--ease);
}

.account-menu-item:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
}


/* ==========================================================================
   10. CATEGORY SECTION
   ========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    display: block;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--r-lg);

    overflow: hidden;

    transition:
        transform .35s var(--ease),
        box-shadow .35s var(--ease),
        border-color .35s var(--ease);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.cat-img-wrap {
    height: 150px;
    overflow: hidden;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s var(--ease);
}

.category-card:hover .cat-img-wrap img {
    transform: scale(1.12);
}

.cat-info {
    padding: 18px 20px 22px;
}

.cat-emoji {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.cat-info h3 {
    margin-bottom: 4px;

    font-size: 17px;
    font-weight: 600;
}

.cat-info p {
    color: var(--ink-muted);
    font-size: 13px;
}


/* ==========================================================================
   10b. PRODUCT GRID (base — grid layout, used by shop & favorites pages)
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* ============================================================
   11. TRENDING PRODUCTS
   ============================================================ */

    .home-product-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-product-grid::-webkit-scrollbar {
        display: none;
    }

    .home-product-grid .product-card {
        flex: 0 0 180px;
        width: 180px;
    }


/* ========================================================= */
/* NOTIFICATIONS */
/* ========================================================= */

.notification-bell {
    position: relative;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.notification-badge {
    position: absolute;

    top: -2px;
    right: -2px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    border-radius: 999px;

    background: #FF5A1F;
    color: white;

    font-size: 10px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 3px;

    overflow: hidden;

    /* IMPORTANT:
       Keeps every card the same width
       and prevents cards from shrinking */
    flex: 0 0 280px;

    width: 280px;

    transition:
        transform .3s var(--ease),
        box-shadow .3s var(--ease);

}
.product-description {
    height: 1.5em;
    line-height: 1.5em;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-media {
    position: relative;

    height: 180px;

    overflow: hidden;

    background: var(--bg-soft);
}

.product-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s var(--ease);
}

.product-card:hover .product-media img {
    transform: scale(1.1);
}

.badge {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    padding: 5px 11px;

    border-radius: var(--r-pill);

    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.badge-trending {
    background: var(--ink);
}

.badge-discount {
    background: var(--accent);
}

.wishlist-btn {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 2;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, .92);
    color: var(--ink-muted);

    cursor: pointer;

    transition:
        color .2s var(--ease),
        transform .2s var(--ease);
}

.wishlist-btn svg {
    width: 16px;
    height: 16px;
}

.wishlist-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.product-info {
    padding: 16px 18px 20px;
}

.product-info h3 {
    margin-bottom: 6px;

    font-size: 15px;
    font-weight: 600;
}

.rating {
    margin-bottom: 8px;

    color: var(--gold);
    font-size: 12.5px;
}

.rating span {
    margin-left: 4px;
    color: var(--ink-faint);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;

    margin-bottom: 8px;
}

.price {
    font-size: 17px;
    font-weight: 700;
}

.price-old {
    color: var(--ink-faint);
    font-size: 13px;
    text-decoration: line-through;
}

.seller-row {
    margin-bottom: 14px;

    color: var(--ink-muted);
    font-size: 12px;
}

.seller-row .dot {
    margin: 0 4px;
}

.add-cart-btn {
    width: 100%;

    padding: 11px;

    border: 2px solid var(--ink);
    border-radius: var(--r-pill);

    background: transparent;
    color: var(--ink);

    font-size: 13.5px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s var(--ease),
        color .25s var(--ease),
        border-color .25s var(--ease);
}

.add-cart-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ==========================================================================
   12. DEALS
   ========================================================================== */

.deals-shapes {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            280px 280px at 90% 15%,
            rgba(255, 255, 255, .12),
            transparent 60%
        ),
        radial-gradient(
            220px 220px at 10% 90%,
            rgba(255, 255, 255, .08),
            transparent 60%
        );

    pointer-events: none;
}

.deals-inner {
    position: relative;
    z-index: 1;

    max-width: 1280px;

    margin: 0 auto;

    padding: 72px 48px;

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 40px;

    align-items: center;
}

.deals-eyebrow {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.deals-copy h2 {
    margin: 14px 0 6px;

    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700;
}

.deals-copy > p {
    margin-bottom: 18px;

    color: rgba(255, 255, 255, .75);

    font-size: 16px;
}

.deals-percent {
    margin-bottom: 30px;

    color: var(--gold);

    font-family: var(--font-display);

    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
}

.deals-media img {
    border-radius: var(--r-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}


/* ==========================================================================
   13. CAMPUS SELLERS
   ========================================================================== */

.seller-grid {
    display: flex;
    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    padding: 5px 5px 18px;

    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
}

.seller-card {
    position: relative;
    overflow: hidden;

    flex: 0 0 280px;
    width: 280px;

    padding: 30px 24px;

    border: 1px solid var(--border);
    border-radius: 1px;

    background: #fff;

    text-align: center;

    transition:
        transform .3s var(--ease),
        box-shadow .3s var(--ease);
}

.seller-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.seller-avatar {
    width: 84px;
    height: 84px;

    margin: 0 auto 16px;

    border: 3px solid var(--accent-light);
    border-radius: 50%;

    object-fit: cover;
}

.seller-card h3 {
    margin-bottom: 6px;

    font-size: 16px;
    font-weight: 600;
}

.seller-card .rating {
    justify-content: center;
    margin-bottom: 4px;
}

.seller-meta {
    margin-bottom: 18px;

    color: var(--ink-muted);

    font-size: 12.5px;
}

/* --- Textured background variant --- */

.seller-card-bg {
    border: 2px solid rgb(209, 202, 202);
    border-radius: 25px;
}

.seller-card-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("{{ url_for('static', filename='back.jpg') }}");
    background-size: 150%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;   /* very light, subtle texture */
    z-index: 0;
}

.seller-card-bg > * {
    position: relative;
    z-index: 1; /* keeps text/avatar above the background */
}
/* ==========================================================================
   27. PROMO BANNER CAROUSEL
   ========================================================================== */

.promo-carousel {
    position: relative;
    overflow: hidden;
}

.promo-slide {
    display: none;
}

.promo-slide.active {
    display: block;
}

.promo-dots {
    position: absolute;

    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 3;

    display: flex;
    gap: 8px;
}

.promo-dot {
    width: 8px;
    height: 8px;

    border: none;
    border-radius: 50%;

    padding: 0;

    background: rgba(11, 22, 40, 0.25);

    cursor: pointer;

    transition: all 0.3s ease;
}

.promo-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--accent, #FF5A1F);
}

@media (max-width: 600px) {
    .promo-dots {
        bottom: 10px;
    }
}


/* ==========================================================================
   14. HAPPENINGS
   ========================================================================== */

.happenings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.post-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--r-md);

    background: var(--bg-soft);

    cursor: pointer;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease),
        background .25s var(--ease);
}

.post-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-sm);

    background: #fff;
}

.post-emoji {
    display: block;

    margin-bottom: 10px;

    font-size: 22px;
}

.post-card p {
    margin-bottom: 8px;

    font-size: 14.5px;
    font-weight: 600;
}

.post-meta {
    color: var(--ink-faint);
    font-size: 12px;
}


/* ==========================================================================
   15. WHY CAMPUSCART
   ========================================================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    padding: 30px 20px;

    border: 1px solid var(--border);
    border-radius: var(--r-lg);

    text-align: center;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease),
        border-color .25s var(--ease);
}

.why-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-md);

    border-color: transparent;
}

.why-icon {
    width: 56px;
    height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 50%;

    background: var(--accent-light);

    font-size: 24px;
}

.why-card h3 {
    margin-bottom: 8px;

    font-size: 16px;
    font-weight: 600;
}

.why-card p {
    color: var(--ink-muted);
    font-size: 13.5px;
}


/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    padding: 28px 24px;

    border: 1px solid var(--border);
    border-radius: var(--r-lg);

    background: #fff;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card > .rating {
    margin-bottom: 14px;
    font-size: 14px;
}

.testimonial-card p {
    margin-bottom: 22px;

    color: var(--ink);

    font-size: 14.5px;
    line-height: 1.6;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-person img {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;
}

.testimonial-person strong {
    display: block;
    font-size: 13.5px;
}

.testimonial-person span {
    display: block;

    color: var(--ink-muted);

    font-size: 12px;
}
/* =========================================================
   TESTIMONIAL SLIDER
   ========================================================= */

.testimonial-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-grid {
    display: flex;
    gap: 20px;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-grid::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   TESTIMONIAL CARDS
   ========================================================= */

/* 7 cards visible on large screens */
.testimonial-card {
    flex: 0 0 calc((100% - 120px) / 7);

    scroll-snap-align: start;
    min-width: 0;
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.testimonial-arrow {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    font-size: 20px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.testimonial-arrow:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

.testimonial-arrow:active {
    transform: scale(0.95);
}
.testimonial-card > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .testimonial-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .testimonial-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .testimonial-slider {
        gap: 8px;
    }

    .testimonial-card {
        flex: 0 0 82%;
    }

    .testimonial-arrow {
        flex: 0 0 36px;

        width: 36px;
        height: 36px;

        font-size: 16px;
    }

}

/* ==========================================================================
   17. NEWSLETTER
   ========================================================================== */

.newsletter {
    margin: 20px 32px 80px;

    padding: 72px 32px;

    border-radius: var(--r-lg);

    background: var(--ink);

    color: #fff;

    text-align: center;
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 10px;

    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
}

.newsletter p {
    margin-bottom: 30px;

    color: rgba(255, 255, 255, .65);

    font-size: 15.5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;

    padding: 6px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-pill);

    background: rgba(255, 255, 255, .08);
}

.newsletter-form input {
    flex: 1;

    padding: 12px 16px;

    border: none;
    outline: none;

    background: transparent;

    color: #fff;

    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.newsletter-form button {
    padding: 12px 26px;

    border: none;
    border-radius: var(--r-pill);

    background: var(--accent);
    color: #fff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s var(--ease),
        transform .2s var(--ease);
}

.newsletter-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}


/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.footer {
    padding: 64px 32px 24px;

    border-top: 1px solid var(--border);

    background: var(--bg-soft);
}

.footer-inner {
    max-width: 1280px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1.6fr repeat(5, 1fr);

    gap: 32px;
}

.footer-brand p {
    max-width: 260px;

    margin: 14px 0 20px;

    color: var(--ink-muted);

    font-size: 13.5px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: #fff;
    color: var(--ink-muted);

    transition:
        color .2s var(--ease),
        border-color .2s var(--ease),
        transform .2s var(--ease);
}

.social-icons svg {
    width: 16px;
    height: 16px;
}

.social-icons a:hover {
    color: var(--accent);

    border-color: var(--accent);

    transform: translateY(-2px);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    margin-bottom: 16px;

    color: var(--ink-faint);

    font-size: 12.5px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-col a {
    padding: 6px 0;

    color: var(--ink-muted);

    font-size: 13.5px;

    transition: color .2s var(--ease);
}

.footer-col a:hover {
    color: var(--accent-dark);
}

.footer-bottom {
    max-width: 1280px;

    margin: 40px auto 0;

    padding-top: 24px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.footer-bottom p {
    color: var(--ink-faint);
    font-size: 12.5px;
}


/* ==========================================================================
   19. MOBILE BOTTOM TAB BAR (floating)
   ========================================================================== */

.bottom-tab-bar {
    display: none;

    position: fixed;

    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));

    z-index: 100;

    padding: 6px;

    border: 1px solid var(--border);
    border-radius: var(--r-pill);

    background: rgba(255, 255, 255, .95);

    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    box-shadow: var(--shadow-lg);

    animation:
        navEnter .6s var(--ease) both,
        navGlow 4s ease-in-out 1s infinite;
}

@keyframes navEnter {
    from {
        opacity: 0;
        transform: translateY(46px) scale(.88);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes navGlow {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: 0 22px 48px rgba(255, 90, 31, .2), var(--shadow-lg);
    }
}

.tab-item {
    flex: 1;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 3px;

    padding: 8px 4px;

    border-radius: var(--r-pill);

    color: var(--ink-muted);

    font-size: 11px;
    font-weight: 600;

    transition:
        color .25s var(--ease),
        background .3s var(--ease),
        transform .15s var(--ease);
}

.tab-item:active {
    transform: scale(.86);
}

.tab-item svg {
    width: 22px;
    height: 22px;

    transition: transform .3s var(--ease);
}

.tab-item.active {
    color: var(--accent);
    background: var(--accent-light);

    animation: tabPop .45s var(--ease);
}

@keyframes tabPop {
    0% {
        transform: scale(.7);
    }

    60% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}

.tab-item.active svg {
    animation: iconFloat 1.8s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.tab-item:not(.active):hover svg {
    transform: translateY(-2px) scale(1.06);
}

.tab-ripple {
    position: absolute;

    border-radius: 50%;

    background: rgba(255, 90, 31, .32);

    transform: scale(0);

    pointer-events: none;

    animation: tabRipple .55s ease-out forwards;
}

@keyframes tabRipple {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

.tab-cart-icon {
    position: relative;
    display: inline-flex;
}

.tab-cart-count {
    position: absolute;

    top: -4px;
    right: -8px;

    width: 15px;
    height: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    font-size: 9px;
    font-weight: 700;

    animation: badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 90, 31, .45);
    }

    50% {
        transform: scale(1.16);
        box-shadow: 0 0 0 5px rgba(255, 90, 31, 0);
    }
}


/* ==========================================================================
   20. RESPONSIVE — 992px
   ========================================================================== */

@media (max-width: 992px) {

    .nav-links {
        display: none;
    }

    /* Search bar stays inline with the icons on mobile, matching desktop's row */
    .navbar-search {
        max-width: none;
    }

    .navbar-inner {
        gap: 14px;
    }

    .bottom-tab-bar {
        display: flex;
    }

    body {
        padding-bottom: 90px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .seller-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid,
    .happenings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deals-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .deals-media {
        max-width: 380px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   21. RESPONSIVE — 768px
   ========================================================================== */

@media (max-width: 768px) {

    .section {
        padding: 64px 24px;
    }

    .navbar-inner {
        padding: 12px 20px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .happenings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   22. RESPONSIVE — 480px
   ========================================================================== */

@media (max-width: 480px) {

    .navbar-inner {
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .navbar-search {
        padding: 8px 14px;
    }

    .navbar-actions {
        gap: 4px;
    }

    .section {
        padding: 48px 18px;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .cat-img-wrap {
        height: 125px;
    }

    .cat-info {
        padding: 14px;
    }

    .cat-info h3 {
        font-size: 15px;
    }

    .cat-info p {
        font-size: 11.5px;
    }

    .product-media {
        height: 150px;
    }

    .product-info {
        padding: 14px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .seller-grid,
    .why-grid,
    .happenings-grid {
        grid-template-columns: 1fr;
    }

    .deals-inner {
        padding: 48px 24px;
    }

    .newsletter {
        margin: 16px;
        padding: 48px 20px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--r-md);
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
.wishlist-btn.active svg {
  fill: #FF5A1F;
  stroke: #FF5A1F;
}


/* ==========================================================================
   23. RESPONSIVE — 375px
   ========================================================================== */

@media (max-width: 375px) {

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }
}


/* ==========================================================================
   24. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .product-card,
    .category-card,
    .seller-card,
    .why-card,
    .testimonial-card,
    .post-card {
        transition: none;
    }

    .account-menu {
        transition: none;
    }

    .bottom-tab-bar,
    .tab-item,
    .tab-item.active,
    .tab-item.active svg,
    .tab-cart-count {
        animation: none;
    }

    .tab-item {
        transition: none;
    }
}
.hidden {
    display: none !important;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.profile-section-header h3 {
    margin: 0;
}

.profile-edit-toggle {
    padding: 6px 16px;
    border: 1px solid #FF5A1F;
    border-radius: 999px;
    background: transparent;
    color: #FF5A1F;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-edit-toggle:hover {
    background: #FF5A1F;
    color: white;
}

.profile-edit-form {
    margin-top: 4px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-field span {
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.profile-field input {
    padding: 12px 14px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.2s ease;
}

.profile-field input:focus {
    outline: none;
    border-color: #FF5A1F;
    background: #fff;
}

.profile-form-msg {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 12.5px;
    font-weight: 600;
}

.profile-form-msg.success {
    color: #23A566;
}

.profile-form-msg.error {
    color: #d92d20;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #eeeeee;
    border-radius: 999px;
    background: white;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-save {
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: #FF5A1F;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-save:hover {
    background: #E14A12;
}

.btn-save:disabled,
.btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.search-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
}

.search-button svg {
    width: 20px;
    height: 20px;
}
.view-more-sellers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.view-more-sellers:hover {
    gap: 12px;
}

/* ============================================================
   SEARCH SUGGESTIONS
============================================================ */

.navbar-search {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: #ffffff;

    border: 1px solid #e8e8e8;

    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    z-index: 9999;

    display: none;

    min-width: 280px;
}


/* ============================================================
   SUGGESTION ITEM
============================================================ */

.search-suggestion-item {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    border: none;

    background: #ffffff;

    cursor: pointer;

    text-align: left;

    font-family:
        'Plus Jakarta Sans',
        sans-serif;

    transition:
        background 0.15s ease;
}


.search-suggestion-item:hover {

    background: #f7f7f7;
}


/* ============================================================
   ICON
============================================================ */

.search-suggestion-icon {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff3ed;

    border-radius: 10px;

    flex-shrink: 0;

    font-size: 17px;
}


/* ============================================================
   CONTENT
============================================================ */

.search-suggestion-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}


/* ============================================================
   NAME
============================================================ */

.search-suggestion-text {

    color: #0B1628;

    font-size: 14px;

    font-weight: 600;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ============================================================
   TYPE
============================================================ */

.search-suggestion-type {

    color: #8a8f98;

    font-size: 11px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

/* ============================================================
   PRODUCT DETAILS MODAL
============================================================ */

.product-modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(11, 22, 40, 0.55);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.product-modal-open {
    overflow: hidden;
}

.product-modal {
    position: relative;

    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    background: #fff;
    border-radius: 24px;

    box-shadow: 0 25px 80px rgba(11, 22, 40, 0.25);

    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.product-modal-overlay.active .product-modal {
    transform: translateY(0) scale(1);
}

.product-modal .profile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.product-modal-loading {
    padding: 80px 20px;
    text-align: center;
    color: var(--ink-muted, #6E685F);
}

.product-modal-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--bg-soft, #FAF8F6);
}

.product-modal-body {
    padding: 24px 28px 28px;
}

.product-modal-category {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;

    background: var(--accent-light, #FFE7DA);
    color: var(--accent-dark, #E14A12);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.product-modal-body h2 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
}

.product-modal-price {
    font-size: 24px;
    font-weight: 800;
    color: #0B1628;
    margin-bottom: 16px;
}

.product-modal-desc {
    color: var(--ink-muted, #6E685F);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-modal-stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-modal-stock.in-stock {
    color: #23A566;
}

.product-modal-stock.out-of-stock {
    color: #d92d20;
}

.product-modal-seller {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;
    margin-bottom: 20px;

    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 14px;
}

.product-modal-seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.product-modal-seller-avatar.initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light, #FFE7DA);
    color: var(--accent-dark, #E14A12);
    font-weight: 700;
    font-size: 16px;
}

.product-modal-seller-info strong {
    display: block;
    font-size: 14px;
}

.product-modal-seller-info span {
    display: block;
    color: var(--ink-muted, #6E685F);
    font-size: 12px;
    margin-top: 2px;
}

.product-modal-actions {
    display: flex;
    gap: 10px;
}

.product-modal-actions .btn {
    flex: 1;
}

.contact-seller-btn {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: center;

    border: none;
    border-radius: 999px;

    background: var(--accent, #FF5A1F);
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-seller-btn:hover {
    background: var(--accent-dark, #E14A12);
    transform: translateY(-2px);
}
.testimonial-form-wrapper {
    position: relative;
    max-width: 700px;
    margin: 50px auto 0;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);

    /* Hidden initially */
    display: none;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.close-testimonial {
    position: absolute;
    top: 15px;
    right: 18px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: #f3f4f6;
    color: #0b1628;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}

.close-testimonial:hover {
    background: #e5e7eb;
}


/* =========================================
   FORM HEADER
========================================= */

.testimonial-form-head {
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-form-head h3 {
    margin: 8px 0;
    font-size: 28px;
}

.testimonial-form-head p {
    margin: 0;
    color: #6b7280;
}


/* =========================================
   FORM
========================================= */

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    box-sizing: border-box;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff5a1f;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.testimonial-submit {
    border: none;

    background: #ff5a1f;
    color: #ffffff;

    padding: 15px 24px;

    border-radius: 12px;

    font-weight: 700;
    font-size: 15px;

    cursor: pointer;

    transition: 0.2s ease;
}

.testimonial-submit:hover {
    transform: translateY(-2px);
}

.testimonial-login {
    text-align: center;
    padding: 25px;
}

.testimonial-login h3 {
    margin-bottom: 8px;
}

.testimonial-login p {
    color: #6b7280;
    margin-bottom: 20px;
}

.testimonial-login-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff5a1f;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0b1628;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


/* =========================================
   FLOATING REVIEWS BUTTON
========================================= */

.floating-reviews-btn {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 14px 20px;

    border: none;
    border-radius: 999px;

    background: #0b1628;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-reviews-btn span {
    color: #ff5a1f;
    font-size: 18px;
}

.floating-reviews-btn:hover {
    transform: translateY(-3px);

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 992px) {

    .floating-reviews-btn {
        right: 16px;
        bottom: 100px;
        padding: 12px 16px;
    }

    .testimonial-form-wrapper {
        margin: 30px 15px 0;
        padding: 30px 20px;
    }

}

@media (max-width: 600px) {

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================================================================
   25. DASHBOARD MOBILE — TIGHTER OVERALL SIZING
   ========================================================================== */

@media (max-width: 600px) {

    /* ---------- General spacing ---------- */

    .section {
        padding: 32px 16px;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .section-head p {
        font-size: 13.5px;
    }

    .section-eyebrow {
        padding: 5px 12px;
        font-size: 11.5px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 13.5px;
    }

    /* ---------- Seller cards ---------- */

    .seller-card {
        padding: 20px 14px;
    }

    .seller-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .seller-card h3 {
        font-size: 13.5px;
    }

    .seller-meta {
        font-size: 11px;
    }


    /* ---------- Happenings ---------- */

    .post-card {
        padding: 14px;
    }

    .post-emoji {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .post-card p {
        font-size: 12.5px;
    }

    .post-meta {
        font-size: 10.5px;
    }


    /* ---------- Why / testimonials ---------- */

    .why-card {
        padding: 20px 14px;
    }

    .why-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .why-card h3 {
        font-size: 13.5px;
    }

    .why-card p {
        font-size: 11.5px;
    }

    .testimonial-card {
        padding: 18px 16px;
    }

    .testimonial-card p {
        font-size: 12.5px;
        margin-bottom: 16px;
    }


    /* ---------- Deals banner ---------- */

    .deals-inner {
        padding: 32px 18px;
    }

    .deals-percent {
        margin-bottom: 20px;
    }
}
/* ==========================================================================
   31. CATEGORY GRID — ALWAYS 2 PER ROW ON MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-img-wrap {
        height: 100px;
    }

    .cat-info {
        padding: 10px;
    }

    .cat-emoji {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .cat-info h3 {
        font-size: 12.5px;
    }

    .cat-info p {
        font-size: 10px;
    }
}
/* ==========================================================================
   32. SELLER GRID — ALWAYS 2 PER ROW ON MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .seller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .seller-card {
        padding: 16px 10px;
    }

    .seller-avatar {
        width: 52px;
        height: 52px;
        margin-bottom: 8px;
    }

    .seller-card h3 {
        font-size: 12.5px;
        margin-bottom: 4px;
    }

    .seller-username {
        font-size: 10.5px;
    }

    .seller-meta {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 11.5px;
    }
}
/* ==========================================================================
   28. PRODUCT GRID — FORCE 3 PER ROW ON MOBILE (put this LAST in the file)
   ========================================================================== */

@media (max-width: 600px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .product-media {
        height: 110px;
    }

    .product-info {
        padding: 10px 10px;
    }

    .product-info h3 {
        font-size: 12.5px;
        margin-bottom: 4px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rating {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .price {
        font-size: 14px;
    }

    .seller-row {
        font-size: 10px;
        margin-bottom: 8px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-stock {
        font-size: 10.5px;
        margin-bottom: 8px;
    }

    .add-cart-btn {
        padding: 8px;
        font-size: 11px;
        border-width: 1.5px;
    }

    .badge {
        padding: 4px 9px;
        font-size: 9.5px;
        top: 10px;
        left: 10px;
    }

    .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }

    .wishlist-btn svg {
        width: 13px;
        height: 13px;
    }
}


@media (max-width: 375px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .product-media {
        height: 95px;
    }
}

    .product-card .product-info {
        padding: 8px !important;
    }

    .product-card .product-info h3 {
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-card .price {
        font-size: 12.5px !important;
    }

    .product-card .add-cart-btn {
        padding: 6px !important;
        font-size: 10px !important;
    }
/* ==========================================================================
   29. TABLET / iPAD SPECIFIC (601px – 1024px)
   Covers iPad portrait (~768px), iPad landscape (~1024px), and
   most Android tablets — isolated from phones (<=600px) and
   desktop (>1024px).
   ========================================================================== */

@media (min-width: 601px) and (max-width: 1024px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }

    .seller-grid,
    .why-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .testimonial-grid,
    .happenings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-media {
        height: 160px;
    }

    .product-info {
        padding: 14px 16px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .cat-img-wrap {
        height: 130px;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ==========================================================================
   35. EVEN TIGHTER SECTION SPACING (put this LAST in the file)
   ========================================================================== */

.section {
    padding: 12px 32px !important;
}

.section-head {
    margin-bottom: 18px !important;
}

.newsletter {
    margin: 10px 32px 20px !important;
}


@media (max-width: 992px) {

    .section {
        padding: 10px 24px !important;
    }
}


@media (max-width: 768px) {

    .section {
        padding: 8px 24px !important;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 6px 16px !important;
    }

    .section-head {
        margin-bottom: 12px !important;
    }

    .newsletter {
        margin: 6px 16px 16px !important;
    }
}
/* ==========================================================================
   30. REDUCE GAP — TRENDING → CATEGORIES
   ========================================================================== */

.trending {
    padding-bottom: 10px;
}

.categories {
    padding-top: 10px;
}
/* ============================================================
   MOBILE — SMALLER PRODUCT & SELLER CARDS
============================================================ */

@media (max-width: 600px) {

    /* =========================
       PRODUCT CARDS
    ========================= */

    .home-product-grid{
        display: flex;
        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 4px 2px 12px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-product-grid::-webkit-scrollbar {
    display: none;
}

    .home-product-grid .product-card {
    flex: 0 0 180px;
    width: 180px;
    border-radius: 16px;
}

    .product-media {
        height: 115px;
    }

    .product-info {
        padding: 9px 10px 11px;
    }

    .product-info h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .product-description {
        font-size: 10px;
    }

    .rating {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .price-row {
        gap: 5px;
        margin-bottom: 5px;
    }

    .price {
        font-size: 13px;
    }

    .price-old {
        font-size: 10px;
    }

    .seller-row {
        font-size: 9.5px;
        margin-bottom: 7px;
    }

    .product-stock {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .add-cart-btn {
        padding: 7px;
        font-size: 10px;
    }

    .badge {
        top: 7px;
        left: 7px;

        padding: 3px 7px;

        font-size: 8px;
    }

    .wishlist-btn {
        width: 26px;
        height: 26px;

        top: 6px;
        right: 6px;
    }

    .wishlist-btn svg {
        width: 12px;
        height: 12px;
    }


    /* =========================
       SELLER CARDS
    ========================= */

    .seller-grid {
        display: flex;
        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 4px 2px 12px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .seller-grid::-webkit-scrollbar {
        display: none;
    }

    .seller-card {
        flex: 0 0 180px;
        width: 180px;

        padding: 16px 10px;

        border-radius: 16px;
    }

    .seller-avatar {
        width: 52px;
        height: 52px;

        margin-bottom: 8px;
    }

    .seller-card h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .seller-username {
        font-size: 10px;
    }

    .seller-meta {
        font-size: 9.5px;
        margin-bottom: 9px;
    }

    .seller-card .btn-sm {
        padding: 7px 10px;
        font-size: 10px;
    }

}
@media (max-width: 600px) {

    .product-card {
        flex: 0 0 150px;
        width: 150px;
        border-radius: 13px;
    }

    .product-media {
        height: 95px;
    }

    .product-info {
        padding: 7px 8px 9px;
    }

    .product-info h3 {
        font-size: 10.5px;
        margin-bottom: 2px;
    }

    .product-description {
        font-size: 8.5px;
    }

    .rating {
        font-size: 8.5px;
        margin-bottom: 3px;
    }

    .price {
        font-size: 11px;
    }

    .price-old {
        font-size: 8.5px;
    }

    .seller-row {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .product-stock {
        font-size: 8.5px;
        margin-bottom: 5px;
    }

    .add-cart-btn {
        padding: 6px;
        font-size: 8.5px;
    }

    .badge {
        top: 5px;
        left: 5px;
        padding: 2px 5px;
        font-size: 7px;
    }

    .wishlist-btn {
        width: 23px;
        height: 23px;
        top: 5px;
        right: 5px;
    }

    .wishlist-btn svg {
        width: 10px;
        height: 10px;
    }


    /* SELLER CARDS */

    .seller-card {
        flex: 0 0 150px;
        width: 150px;
        padding: 12px 8px;
        border-radius: 13px;
    }

    .seller-avatar {
        width: 45px;
        height: 45px;
        margin-bottom: 6px;
    }

    .seller-card h3 {
        font-size: 10.5px;
        margin-bottom: 2px;
    }

    .seller-username {
        font-size: 8.5px;
    }

    .seller-meta {
        font-size: 8px;
        margin-bottom: 7px;
    }

    .seller-card .btn-sm {
        padding: 6px 8px;
        font-size: 8.5px;
    }
}
/* =========================================================
   SMALLER CARDS — TABLETS / iPADS
   ========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {

    .product-grid,
    .seller-grid {
        gap: 12px;
    }

    .product-card {
        flex: 0 0 190px;
        width: 190px;
        border-radius: 5px;
    }

    .product-media {
        height: 125px;
    }

    .product-info {
        padding: 9px 10px 11px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .product-description {
        font-size: 10px;
    }

    .price {
        font-size: 13px;
    }

    .price-old {
        font-size: 10px;
    }

    .seller-row {
        font-size: 9px;
    }

    .product-stock {
        font-size: 9.5px;
    }

    .add-cart-btn {
        padding: 7px;
        font-size: 10px;
    }


    /* SELLER CARDS */

    .seller-card {
        flex: 0 0 190px;
        width: 190px;
        padding: 15px 10px;
        border-radius: 15px;
    }

    .seller-avatar {
        width: 55px;
        height: 55px;
    }

    .seller-card h3 {
        font-size: 12px;
    }

    .seller-username {
        font-size: 10px;
    }

    .seller-meta {
        font-size: 9px;
    }

    .seller-card .btn-sm {
        padding: 7px 10px;
        font-size: 10px;
    }
}
/* ==========================================================================
   HERO BOTTOM STRIP (top announcement bar)
   ========================================================================== */

.hero-bottom-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    padding: 10px 16px;

    background: #000000;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.hero-bottom-strip .dot {
    opacity: 0.5;
}

@media (max-width: 600px) {
    .hero-bottom-strip {
        padding: 8px 12px;
        font-size: 11.5px;
        gap: 6px;
    }
}
@media (max-width: 600px) {

    .happenings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .post-card {
        padding: 12px;
    }

    .post-emoji {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .post-card p {
        font-size: 12px;
        margin-bottom: 6px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .post-meta {
        font-size: 10px;
    }
}
@media (max-width: 600px) {

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .why-card {
        padding: 16px 12px;
    }

    .why-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        margin-bottom: 8px;
    }

    .why-card h3 {
        font-size: 12.5px;
    }

    .why-card p {
        font-size: 10.5px;
    }
}
.hero-bottom-strip {
  overflow: hidden;
  white-space: nowrap;
  display: block;
  padding: 12px 0;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll var(--duration, 20s) linear infinite;
}

.strip-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.strip-group span {
  padding-right: 1.5rem;
  font-weight: 700;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--shift, -50%)); }
}

.hero-bottom-strip:hover .strip-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}


.search-results-wrap { margin-bottom: 24px; }
.search-results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px;
}
.search-results-header p { margin: 0; font-size: 14px; color: var(--ink-muted, #6E685F); }
.btn-clear-search {
    background: none; border: 1px solid #e5e5e5; border-radius: 999px;
    padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.search-result-group { margin-bottom: 28px; }
.search-result-group h3 { font-size: 15px; margin: 0 0 12px; }

.search-products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.search-product-card {
    text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 12px;
    overflow: hidden; display: block;
}
.search-product-card img { width: 100%; height: 110px; object-fit: cover; display: block; background: #faf8f6; }
.spc-body { padding: 8px 10px; }
.spc-body strong { display: block; font-size: 13px; }
.spc-body span { display: block; font-size: 13px; color: var(--accent, #FF5A1F); font-weight: 700; }
.spc-body small { color: var(--ink-muted, #6E685F); font-size: 11.5px; }

.search-sellers-grid { display: flex; flex-direction: column; gap: 8px; }
.search-seller-card {
    display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
    border: 1px solid #eee; border-radius: 12px; padding: 10px 12px;
}
.search-seller-card img, .search-seller-initial {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.search-seller-initial {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light, #FFE7DA); color: var(--accent-dark, #E14A12); font-weight: 700;
}
.search-seller-card strong { display: block; font-size: 14px; }
.search-seller-card small { color: var(--ink-muted, #6E685F); font-size: 12px; }

.search-post-card {
    display: flex; gap: 10px; text-decoration: none; color: inherit;
    border: 1px solid #eee; border-radius: 12px; padding: 10px; margin-bottom: 8px;
}
.search-post-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.spost-body strong { display: block; font-size: 13px; }
.spost-body p { margin: 2px 0; font-size: 13px; color: #333; }
.spost-body small { color: var(--ink-muted, #6E685F); font-size: 11.5px; }

/* Randomized Products - mobile */
.randomized-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    overflow: visible;
}
/* Force randomized cards to fill each grid column */
.randomized-products-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}
/* Tablet and desktop - 4 per row */
@media (min-width: 768px) {
    .randomized-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (min-width: 1050px) {
    .randomized-products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

/* ============================================================
   CONTACT SELLER MODAL
   Matches Favorites styling exactly
============================================================ */

.contact-seller-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 40, 0.55);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 10000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.contact-seller-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


body.contact-modal-open {
    overflow: hidden;
}


/* ============================================================
   MODAL CONTENT
============================================================ */

.contact-seller-content {
    position: relative;

    width: min(400px, 100%);
    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 24px;

    padding: 28px;

    box-shadow:
        0 25px 80px rgba(11, 22, 40, 0.25);
}


/* ============================================================
   CLOSE BUTTON
============================================================ */

.close-contact {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #f5f5f5;

    font-size: 22px;

    cursor: pointer;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.close-contact:hover {
    background: #eeeeee;
    transform: rotate(90deg);
}
/* =========================
   REVIEW MODAL
========================= */

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(6px);
}

.testimonial-modal-content {
    position: relative;

    width: min(520px, 100%);

    max-height: 90vh;
    overflow-y: auto;

    background: var(--card-bg, #ffffff);

    border-radius: 22px;

    padding: 30px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    animation: reviewModalIn 0.2s ease;
}

@keyframes reviewModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.testimonial-modal-close {
    position: absolute;

    top: 16px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    color: inherit;
}

.testimonial-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.testimonial-modal-header {
    padding-right: 40px;
    margin-bottom: 25px;
}

.testimonial-modal-header h2 {
    margin: 6px 0 8px;
}

.testimonial-modal-header p {
    margin: 0;

    opacity: 0.7;
}


/* =========================
   STAR RATING
========================= */

.review-rating {
    margin-bottom: 24px;
}

.review-rating > label,
.review-comment > label {
    display: block;

    margin-bottom: 10px;

    font-weight: 700;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;

    justify-content: flex-end;

    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 36px;

    color: #c8c8c8;

    cursor: pointer;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5a623;
}

.star-rating label:hover {
    transform: scale(1.08);
}


/* =========================
   COMMENT
========================= */

.review-comment textarea {
    width: 100%;

    min-height: 130px;

    resize: vertical;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 14px;

    background: transparent;

    color: inherit;

    font: inherit;

    outline: none;
}

.review-comment textarea:focus {
    border-color: #f5a623;

    box-shadow:
        0 0 0 3px rgba(245, 166, 35, 0.12);
}

.review-comment small {
    display: block;

    margin-top: 6px;

    opacity: 0.55;
}


/* =========================
   BUTTONS
========================= */

.testimonial-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
}

.review-cancel-btn,
.review-submit-btn {
    border: none;

    border-radius: 12px;

    padding: 12px 20px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.review-cancel-btn {
    background: rgba(0, 0, 0, 0.07);

    color: inherit;
}

.review-submit-btn {
    background: #f5a623;

    color: #111;

    box-shadow:
        0 8px 20px rgba(245, 166, 35, 0.2);
}

.review-submit-btn:hover {
    transform: translateY(-1px);
}


/* =========================
   DARK MODE
========================= */

.dark-mode .testimonial-modal-content,
body.dark-mode .testimonial-modal-content {
    background: #1d1d1d;

    color: #fff;
}

.dark-mode .review-comment textarea,
body.dark-mode .review-comment textarea {
    border-color: rgba(255, 255, 255, 0.15);

    color: #fff;
}

.dark-mode .review-cancel-btn,
body.dark-mode .review-cancel-btn {
    background: rgba(255, 255, 255, 0.1);

    color: #fff;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .testimonial-modal {
        padding: 14px;
    }

    .testimonial-modal-content {
        padding: 24px 20px;

        border-radius: 18px;
    }

    .star-rating label {
        font-size: 32px;
    }

    .testimonial-form-actions {
        flex-direction: column-reverse;
    }

    .review-cancel-btn,
    .review-submit-btn {
        width: 100%;
    }
}

/* ============================================================
   CONTACT OPTIONS
============================================================ */

.contact-option {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px 16px;

    margin-top: 12px;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    color: #0B1628;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.contact-option:first-child {
    margin-top: 40px;
}


.contact-option:hover {
    border-color: #FF5A1F;

    background: #FFF7F3;

    transform: translateY(-1px);
}


/* ============================================================
   NO CONTACT INFORMATION
============================================================ */

.no-contact-info {
    margin-top: 40px;

    text-align: center;

    color: #6E685F;

    font-size: 14px;

    line-height: 1.5;
}


/* ============================================================
   TRANSACTION CODE
============================================================ */

.transaction-code-box {
    margin-top: 18px;

    padding: 16px;

    border-radius: 16px;

    background: #FFF7F3;

    border: 1px solid rgba(255, 90, 31, 0.2);

    text-align: center;
}


.transaction-code-label {
    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: #6E685F;

    margin-bottom: 7px;
}


.transaction-code-value {
    font-size: 20px;

    font-weight: 800;

    letter-spacing: 0.08em;

    color: #FF5A1F;

    word-break: break-word;
}


.transaction-code-help {
    margin-top: 8px;

    font-size: 11.5px;

    line-height: 1.5;

    color: #6E685F;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 480px) {

    .contact-seller-modal {
        padding: 14px;
    }

    .contact-seller-content {
        width: 100%;

        max-height: 90vh;

        padding: 24px 20px;

        border-radius: 22px;
    }

    .close-contact {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;
    }

    .contact-option {
        padding: 13px 14px;

        font-size: 14px;
    }

    .transaction-code-value {
        font-size: 18px;
    }
}
/* ============================================================
   PRODUCT DETAIL IMAGE
============================================================ */

.product-detail-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    border-radius: 12px 12px 0 0;
}


/* ============================================================
   FULL-SCREEN PRODUCT IMAGE
============================================================ */

.full-image-modal {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.94);

    padding: 20px;

    z-index: 999999;
}


/* THIS MAKES IT VISIBLE */

.full-image-modal.active {
    display: flex;
}


/* FULL IMAGE */

.full-image-modal img {
    display: block;

    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    cursor: zoom-out;
}


/* CLOSE BUTTON */

.full-image-close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    z-index: 1000000;
}


.full-image-close:hover {
    background: rgba(255, 255, 255, 0.28);
}


/* PREVENT PAGE SCROLLING */

body.full-image-open {
    overflow: hidden;
}


@media (max-width: 767px) {

    .product-detail-image {
        height: 230px;
    }

    .full-image-modal {
        padding: 10px;
    }

    .full-image-modal img {
        max-width: 96vw;
        max-height: 85vh;
    }

    .full-image-close {
        top: 12px;
        right: 12px;

        width: 42px;
        height: 42px;

        font-size: 30px;
    }
}
/* Wrap long / unbroken text so it never runs off the screen */
[data-see-more] {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Folded state: show only 3 lines */
[data-see-more].clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.see-more-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  background: none;
  border: none;
  color: #FF5A1F;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.see-more-btn:hover { text-decoration: underline; }

/* ============================================================================
   cUshop MARKETPLACE UI REDESIGN — SCOPED OVERRIDES
   --------------------------------------------------------------------------
   Visual/structural changes only. Existing product, seller, category and
   modal information stays in the HTML/Jinja templates.
============================================================================ */

/* The marketplace area becomes a two-column desktop/tablet experience. */
.dashboard-market-layout {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 20px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-market-content {
    min-width: 0;
}

.dashboard-market-content .section {
    max-width: none;
    padding: 0 0 28px;
}

.dashboard-market-content .section-head {
    max-width: none;
    margin: 0 0 18px;
    text-align: left;
}

.dashboard-market-content .section-head .section-eyebrow {
    margin-bottom: 0;
}

/* Category sidebar — desktop/tablet */
.dashboard-category-sidebar {
    position: sticky;
    top: 88px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #ece6dd;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(20, 18, 15, 0.06);
    z-index: 5;
}

.dashboard-category-sidebar .section-head {
    margin: 0 6px 12px;
    text-align: left;
}

.dashboard-category-sidebar .section-eyebrow {
    padding: 0;
    margin: 0;
    background: transparent;
    color: #14120f;
    font-size: 13px;
    letter-spacing: 0;
}

.dashboard-category-sidebar .category-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-category-sidebar .category-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.dashboard-category-sidebar .category-card:hover {
    transform: none;
    border-color: transparent;
    background: #fff3ed;
    box-shadow: none;
}

.dashboard-category-sidebar .cat-img-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    background: #f7f5f2;
}

.dashboard-category-sidebar .cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-category-sidebar .cat-info {
    min-width: 0;
    padding: 0;
}

.dashboard-category-sidebar .cat-emoji {
    display: none;
}

.dashboard-category-sidebar .cat-info h3 {
    margin: 0 0 1px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-category-sidebar .cat-info p {
    color: #8a8278;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trending on Campus: horizontal product rail. */
.dashboard-market-content .home-product-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.dashboard-market-content .home-product-grid::-webkit-scrollbar {
    display: none;
}

.dashboard-market-content .home-product-grid .product-card {
    flex: 0 0 250px;
    width: 250px;
    min-width: 250px;
}

.dashboard-market-content .randomized-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-market-content .product-card {
    position: relative;
    border: 1px solid #ece6dd;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.dashboard-market-content .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(20, 18, 15, .10);
    border-color: #ded5c7;
}

.dashboard-market-content .product-card:focus-visible {
    outline: 3px solid #ff5a1f;
    outline-offset: 3px;
}

.dashboard-market-content .product-media {
    height: 190px;
    border-radius: 15px 15px 0 0;
}

.dashboard-market-content .product-info {
    position: relative;
    padding: 14px 48px 15px 14px;
}

.dashboard-market-content .product-info h3 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 5px;
}

/* Requested orange + button. It is still connected to the existing modal
   so no existing backend/cart functionality is silently changed. */
.dashboard-market-content .product-plus-btn {
    position: absolute;
    right: 12px;
    bottom: 13px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ff5a1f;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    box-shadow: 0 5px 14px rgba(255, 90, 31, .25);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.dashboard-market-content .product-plus-btn span {
    display: block;
    transform: translateY(-1px);
}

.dashboard-market-content .product-plus-btn:hover {
    background: #e14a12;
    color: #fff;
    border-color: transparent;
    transform: scale(1.06);
}

/* Keep the old category information available visually in the sidebar,
   while removing the large card presentation. */
.dashboard-category-sidebar + .dashboard-market-content .section-heading {
    margin-top: 2px;
}

/* Tablet: sidebar remains visible, product area gets 3 columns. */
@media (min-width: 601px) and (max-width: 1024px) {
    .dashboard-market-layout {
        width: min(100% - 28px, 1000px);
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
        padding-top: 18px;
    }

    .dashboard-category-sidebar {
        position: sticky;
        top: 78px;
        padding: 12px 8px;
        border-radius: 16px;
    }

    .dashboard-category-sidebar .cat-img-wrap {
        width: 30px;
        height: 30px;
    }

    .dashboard-category-sidebar .category-card {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 6px;
    }

    .dashboard-category-sidebar .cat-info h3 {
        font-size: 12px;
    }

    .dashboard-category-sidebar .cat-info p {
        font-size: 9px;
    }

    .dashboard-market-content .home-product-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 12px;
    }

    .dashboard-market-content .home-product-grid .product-card {
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
    }

    .dashboard-market-content .randomized-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .dashboard-market-content .product-media {
        height: 150px;
    }
}

/* Mobile: categories move above products as compact horizontal pills. */
@media (max-width: 600px) {
    .dashboard-market-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        padding: 8px 0 12px;
    }

    .dashboard-category-sidebar {
        position: static;
        order: 0;
        width: 100%;
        margin: 0;
        padding: 4px 16px 8px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        overflow: hidden;
    }

    .dashboard-category-sidebar .section-head {
        margin: 0 0 8px;
        padding: 0;
    }

    .dashboard-category-sidebar .section-eyebrow {
        font-size: 12px;
        font-weight: 800;
    }

    .dashboard-category-sidebar .category-grid {
        display: flex;
        flex-direction: row;
        gap: 7px;
        overflow-x: auto;
        padding: 1px 0 5px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-category-sidebar .category-grid::-webkit-scrollbar {
        display: none;
    }

    .dashboard-category-sidebar .category-card {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        width: auto;
        min-width: max-content;
        padding: 8px 12px;
        border: 1px solid #ece6dd;
        border-radius: 999px;
        background: #f8f7f5;
    }

    .dashboard-category-sidebar .category-card:hover {
        background: #fff3ed;
    }

    .dashboard-category-sidebar .cat-img-wrap {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }

    .dashboard-category-sidebar .cat-info h3 {
        margin: 0;
        font-size: 11px;
        font-weight: 700;
    }

    .dashboard-category-sidebar .cat-info p {
        display: none;
    }

    .dashboard-market-content {
        width: 100%;
    }

    .dashboard-market-content .section {
        padding: 8px 16px 16px !important;
    }

    .dashboard-market-content .section-head {
        margin-bottom: 10px !important;
    }

    .dashboard-market-content .section-head .section-eyebrow {
        font-size: 13px;
    }

    .dashboard-market-content .home-product-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-market-content .home-product-grid::-webkit-scrollbar {
        display: none;
    }

    .dashboard-market-content .home-product-grid .product-card {
        flex: 0 0 180px;
        width: 180px;
        min-width: 180px;
    }

    .dashboard-market-content .randomized-products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 0;
    }

    .dashboard-market-content .product-media {
        height: 145px;
    }

    .dashboard-market-content .product-info {
        padding: 10px 44px 12px 10px;
    }

    .dashboard-market-content .product-info h3 {
        font-size: 12px;
    }

    .dashboard-market-content .product-description {
        font-size: 9px;
    }

    .dashboard-market-content .seller-row {
        font-size: 9.5px;
    }

    .dashboard-market-content .product-stock {
        font-size: 10px;
    }

    .dashboard-market-content .product-plus-btn {
        right: 8px;
        bottom: 9px;
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 25px;
    }
}

/* Product details modal: keep the modal itself scrollable on smaller screens. */
@media (max-width: 600px) {
    .product-modal-overlay {
        align-items: flex-start;
        padding: 16px;
        overflow-y: auto;
    }

    .product-modal {
        width: 100%;
        max-height: calc(100vh - 32px);
        margin: auto 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 20px;
    }

    .product-modal-image {
        height: 240px;
    }
}
