/*=========================================================
        متجر العمق — AL-OMQ STORE
        الأنماط الرئيسية (واجهة المتجر)
=========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/*=========================================================
        Variables
=========================================================*/
:root {
    --primary: #102C57;
    --primary-light: #1f467f;
    --primary-soft: #eef2fa;
    --secondary: #D4AF37;
    --secondary-dark: #b8912a;
    --background: #F8F5EE;
    --white: #ffffff;
    --text: #22303f;
    --muted: #7a818c;
    --line: #ece7da;
    --danger: #d1453b;
    --success: #1da851;
    --shadow: 0 10px 30px rgba(16, 44, 87, .08);
    --shadow-lg: 0 25px 55px rgba(16, 44, 87, .16);
    --radius: 18px;
    --transition: .3s ease;
    --header-h: 74px;
}

/*=========================================================
        Reset
=========================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    animation: fadePage .6s ease;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
}

@keyframes fadePage {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    width: 94%;
    max-width: 1200px;
    margin: auto;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-head h2 i {
    color: var(--secondary);
    font-size: .8em;
}

.section-head p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.link-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.link-more:hover {
    color: var(--secondary-dark);
    gap: 10px;
}

/*=========================================================
        Header
=========================================================*/
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    transition: transform .3s;
    display: block;
}

.brand:hover .logo {
    transform: rotate(-6deg) scale(1.05);
}

.brand-text h1 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.brand-text p {
    font-size: 11.5px;
    color: #cfd8e8;
    margin-top: 2px;
}

/* ---- Search (header) ---- */
.header-search {
    flex: 1;
    max-width: 430px;
    position: relative;
    display: none;
}

.header-search input {
    width: 100%;
    padding: 12px 44px 12px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 14.5px;
    outline: none;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: #c3cddf;
}

.header-search input:focus {
    background: rgba(255, 255, 255, .2);
    border-color: var(--secondary);
}

.header-search i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #c3cddf;
    font-size: 15px;
    pointer-events: none;
}

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

.icon-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--secondary);
    color: #1a1206;
    transform: translateY(-2px);
}

.icon-btn:active {
    transform: scale(.94);
}

.cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(231, 76, 60, .45);
}

.cart-count.bump {
    animation: bump .4s ease;
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

/* ---- Category nav bar ---- */
.nav-bar {
    background: rgba(255, 255, 255, .08);
    border-top: 1px solid rgba(255, 255, 255, .1);
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
    display: none;
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    color: #dbe3f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-link i {
    font-size: 13px;
    opacity: .85;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    border-bottom-color: var(--secondary);
    background: rgba(255, 255, 255, .05);
}

.nav-link.deals i {
    color: var(--secondary);
}

/*=========================================================
        Hero
=========================================================*/
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 340px at 88% -10%, rgba(212, 175, 55, .18), transparent 60%),
        radial-gradient(600px 300px at 5% 110%, rgba(31, 70, 127, .12), transparent 60%);
    padding: 52px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--line);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.hero-badge i {
    color: var(--secondary-dark);
}

.hero h2 {
    font-size: clamp(28px, 4.4vw, 46px);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 14px;
}

.hero h2 span {
    color: var(--secondary-dark);
}

.hero p {
    color: #5d6673;
    font-size: 16.5px;
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(16, 44, 87, .22);
    transition: var(--transition);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(16, 44, 87, .3);
}

.hero-btn.gold {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #201503;
    box-shadow: 0 14px 30px rgba(212, 175, 55, .35);
}

.hero-stats {
    display: flex;
    gap: 26px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-stats div strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
}

.hero-stats div span {
    font-size: 12.5px;
    color: var(--muted);
}

/* Hero visual */
.hero-visual {
    position: relative;
    min-height: 300px;
}

.hero-visual .visual-card {
    position: absolute;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid #fff;
    background: #fff;
}

.hero-visual .visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-visual .v1 {
    width: 62%;
    height: 240px;
    top: 0;
    right: 0;
    transform: rotate(3deg);
}

.hero-visual .v2 {
    width: 52%;
    height: 190px;
    bottom: 0;
    left: 4%;
    transform: rotate(-4deg);
}

.hero-visual .visual-chip {
    position: absolute;
    left: 0;
    top: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
}

.hero-visual .visual-chip i {
    color: var(--success);
    font-size: 16px;
}

/*=========================================================
        Sections (categories grid)
=========================================================*/
.sections-wrap {
    padding: 18px 0 10px;
}

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

.section-card {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    min-height: 190px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--card-color, #102C57), rgba(0, 0, 0, .45));
    box-shadow: var(--shadow);
    transition: var(--transition);
    isolation: isolate;
}

.section-card.has-image {
    padding: 24px;
}

.section-card .section-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
}

.section-card:hover .section-bg {
    transform: scale(1.07);
}

.section-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(6, 14, 30, .82) 10%, rgba(6, 14, 30, .35) 100%);
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.section-card .sc-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 23px;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

/* أيقونة خلفية كبيرة توضح معنى القسم عند غياب صورة */
.section-card .sc-ghost {
    position: absolute;
    inset-inline-end: -18px;
    inset-block-end: -34px;
    font-size: 168px;
    line-height: 1;
    color: #fff;
    opacity: .1;
    transform: rotate(-10deg);
    pointer-events: none;
}

.section-card h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 6px;
}

.section-card p {
    font-size: 13.5px;
    color: #e3e8f2;
    line-height: 1.8;
    max-width: 95%;
}

.section-card .sc-meta {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

/*=========================================================
        Product cards
=========================================================*/
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid #f1ece0;
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #e7dfcc;
}

.card-img {
    position: relative;
    overflow: hidden;
    background: #f4f1e9;
    aspect-ratio: 4/3;
    cursor: pointer;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

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

.card-img .img-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 42px;
    color: rgba(255, 255, 255, .92);
    background: linear-gradient(135deg, #cfd8e6, #b9c4d4);
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--secondary);
    color: #1a1206;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.tag.new {
    background: #1da851;
    color: #fff;
}

.tag.out {
    background: #5b6472;
    color: #fff;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--danger);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 9px;
    box-shadow: 0 6px 14px rgba(209, 69, 59, .3);
}

.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-cat {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
    cursor: pointer;
}

.card h3:hover {
    color: var(--primary);
}

.card-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.price strong {
    font-size: 19px;
    font-weight: 900;
    color: var(--primary);
}

.price .currency {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
}

.price .old {
    font-size: 12.5px;
    color: #a8a096;
    text-decoration: line-through;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.add-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 800;
    transition: var(--transition);
}

.add-btn:hover:not(:disabled) {
    background: var(--secondary);
    color: #1a1206;
}

.add-btn:disabled {
    background: #dfe0e3;
    color: #808690;
    cursor: not-allowed;
}

.quick-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1.5px solid #e8e2d4;
    border-radius: 11px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: grid;
    place-items: center;
}

.quick-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* Horizontal scroller for offers / new */
.scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.scroller .card {
    min-width: 236px;
    max-width: 236px;
    scroll-snap-align: start;
}

/*=========================================================
        Offers strip
=========================================================*/
.offers-wrap {
    background: #fff;
    border-radius: 26px;
    padding: 26px 22px 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

/*=========================================================
        Toolbar / filters
=========================================================*/
.catalog {
    padding: 10px 0 40px;
}

.toolbar {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toolbar-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1.5px solid #e6e0d2;
    border-radius: 12px;
    background: #fbfaf6;
    font-size: 14.5px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .13);
}

.search-box i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #b3ab93;
    pointer-events: none;
}

select.filter {
    padding: 12px 14px;
    border: 1.5px solid #e6e0d2;
    border-radius: 12px;
    background: #fbfaf6;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

select.filter:focus {
    border-color: var(--secondary);
    background: #fff;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    border: 1.5px solid #e6e0d2;
    background: #fff;
    color: #4c5662;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.result-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

/*=========================================================
        Empty state
=========================================================*/
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed #ddd5c4;
}

.empty-state i {
    font-size: 46px;
    color: #d9d2c0;
    margin-bottom: 14px;
    display: block;
}

.empty-state h3 {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
}

/*=========================================================
        Features strip
=========================================================*/
.features {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.feature i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}

.feature strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

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

/*=========================================================
        Cart drawer
=========================================================*/
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 32, .55);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: min(410px, 94vw);
    background: #fff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.5, 0, .2, 1);
    box-shadow: 20px 0 60px rgba(0, 0, 0, .2);
}

.cart.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.cart-header h2 {
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-header h2 i {
    color: var(--secondary);
}

.close-cart,
.close-modal {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 11px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: .25s;
    line-height: 1;
    display: grid;
    place-items: center;
}

.close-cart:hover,
.close-modal:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-group-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 4px 2px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--background);
    border: 1px solid #ece7da;
    border-radius: 14px;
    padding: 10px;
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item .ci-img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e2d4;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
}

.cart-item .ci-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .unit {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border-radius: 8px;
    padding: 2px;
}

.cart-item-qty button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
    line-height: 1;
}

.cart-item-qty button:hover {
    background: var(--secondary);
    color: #1a1206;
}

.cart-item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cart-item-right .line-total {
    font-weight: 800;
    color: var(--primary);
    font-size: 13.5px;
    white-space: nowrap;
}

.remove-item {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 13px;
    cursor: pointer;
    transition: .25s;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 50px 10px;
}

.cart-empty i {
    font-size: 46px;
    color: #d9d2c0;
    display: block;
    margin-bottom: 14px;
}

.cart-footer {
    border-top: 1px solid var(--line);
    padding: 16px 20px 20px;
    background: #fff;
}

.coupon-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e6e0d2;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    background: #fbfaf6;
}

.coupon-row input:focus {
    border-color: var(--secondary);
}

.coupon-row button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s;
}

.coupon-row button:hover {
    background: var(--secondary);
    color: #1a1206;
}

.totals {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.totals .row {
    display: flex;
    justify-content: space-between;
    color: #5d6673;
}

.totals .row.total {
    padding-top: 9px;
    border-top: 1px dashed #e2dccb;
    font-size: 17px;
    font-weight: 900;
    color: var(--primary);
}

.totals .row.discount {
    color: var(--success);
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #25D366, #1da851);
    color: #fff;
    padding: 14px;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: var(--transition);
    box-shadow: 0 12px 26px rgba(37, 211, 102, .3);
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, .4);
}

.checkout-btn:disabled {
    background: #cfd3d9;
    box-shadow: none;
    cursor: not-allowed;
}

/*=========================================================
        Modals (general + checkout + product)
=========================================================*/
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 16, 32, .6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    backdrop-filter: blur(4px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 22px;
    padding: 26px;
    position: relative;
    border-top: 5px solid var(--secondary);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
    transform: scale(.9) translateY(24px);
    transition: transform .35s cubic-bezier(.5, 0, .2, 1);
}

.modal.active .modal-box {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f1ede3;
    color: var(--text);
    z-index: 3;
}

.close-modal:hover {
    color: #fff;
}

.modal-box h2 {
    font-size: 23px;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 6px;
    padding: 0 30px;
}

.modal-sub {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.field label span {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2dccb;
    border-radius: 11px;
    font-size: 14.5px;
    outline: none;
    transition: .25s;
    background: #fbfaf6;
    color: var(--text);
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .14);
}

.field.error input,
.field.error textarea,
.field.error select {
    border-color: var(--danger);
    background: #fff6f5;
}

.field .err-msg {
    display: none;
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

.field.error .err-msg {
    display: block;
}

.send-btn {
    width: 100%;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #25D366, #1da851);
    color: #fff;
    padding: 14px;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: var(--transition);
    box-shadow: 0 12px 26px rgba(37, 211, 102, .3);
}

.send-btn:hover {
    transform: translateY(-2px);
}

.pay-note {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f5f2e8;
    border: 1px dashed #d8cfb8;
    border-radius: 11px;
    padding: 11px 13px;
    font-size: 12.5px;
    color: #5d5544;
    font-weight: 600;
    margin-top: 14px;
}

.pay-note i {
    color: var(--secondary-dark);
}

.order-summary {
    background: #fbfaf6;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 13px;
}

.order-summary .os-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #4c5662;
}

.order-summary .os-row.total {
    border-top: 1px dashed #e2dccb;
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 900;
    color: var(--primary);
    font-size: 15px;
}

/* ---- Product modal ---- */
.product-modal .modal-box {
    max-width: 880px;
    padding: 0;
    border-top: none;
    overflow: hidden;
}

.pm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
}

.pm-gallery {
    background: #f4f1e9;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-main-img {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #e8e2d4;
    display: grid;
    place-items: center;
    min-height: 250px;
    color: #fff;
    font-size: 46px;
}

.pm-main-img img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.pm-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pm-thumbs button {
    width: 58px;
    height: 58px;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #fff;
}

.pm-thumbs button.active {
    border-color: var(--secondary);
}

.pm-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-info {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-info .pm-cat {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.pm-info h2 {
    font-size: 24px;
    text-align: right;
    padding: 0;
    margin: 0;
}

.pm-info .pm-desc {
    font-size: 13.5px;
    color: #5d6673;
    line-height: 1.9;
}

.pm-info .price strong {
    font-size: 26px;
}

.pm-stock {
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
}

.pm-stock.out {
    color: var(--danger);
}

.pm-qty-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f0e8;
    border-radius: 11px;
    padding: 4px;
    flex-shrink: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-val {
    min-width: 30px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
}

/*=========================================================
        Toast
=========================================================*/
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transition: .35s cubic-bezier(.5, 0, .2, 1);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.toast i {
    color: var(--secondary);
}

.toast.error i {
    color: #ff9a92;
}

/*=========================================================
        WhatsApp float
=========================================================*/
.whatsapp {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 27px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
    z-index: 1500;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: scale(1.1) rotate(8deg);
}

.whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2.4s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: .5; }
    100% { transform: scale(1.55); opacity: 0; }
}

/*=========================================================
        Footer
=========================================================*/
footer {
    background: linear-gradient(135deg, var(--primary), #173b70);
    color: #fff;
    padding: 46px 0 22px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.footer-brand img {
    width: 62px;
    border-radius: 13px;
    background: #fff;
    padding: 5px;
    margin-bottom: 10px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.footer-brand p {
    color: #c3cee2;
    font-size: 13px;
    line-height: 1.9;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary);
}

.footer-col a,
.footer-col span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #dfe6f2;
    text-decoration: none;
    margin-bottom: 9px;
    font-size: 13.5px;
    transition: .25s;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-col i {
    width: 16px;
    margin-top: 3px;
    color: var(--secondary);
    font-size: 13px;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #9fb0d0;
    font-size: 12.5px;
}

.footer-bottom a {
    color: #9fb0d0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/*=========================================================
        Scrollbar
=========================================================*/
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-thumb {
    background: #d9cfb5;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

::-webkit-scrollbar-track {
    background: #f0ece2;
}

/*=========================================================
        Utility
=========================================================*/
.hidden {
    display: none !important;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/*=========================================================
        Responsive
=========================================================*/
@media (min-width: 992px) {
    .header-search {
        display: block;
    }
}

@media (max-width: 991px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .header-search {
        display: block;
        order: 4;
        flex: 1 0 100%;
        max-width: none;
    }

    .header-search input {
        padding: 10px 40px 10px 16px;
        font-size: 13.5px;
    }

    .header-search i {
        font-size: 14px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 10px 14px;
        gap: 10px;
    }

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

    .brand-text h1 {
        font-size: 17px;
    }

    .brand-text p {
        font-size: 10.5px;
    }

    .icon-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .hero {
        padding: 34px 0 26px;
    }

    .hero p {
        font-size: 14.5px;
    }

    .hero-btn {
        padding: 12px 22px;
        font-size: 14.5px;
    }

    .hero-stats {
        gap: 18px;
        margin-top: 22px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .section-card {
        min-height: 150px;
        padding: 18px;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-body {
        padding: 11px 12px 13px;
        gap: 6px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card-desc {
        display: none;
    }

    .price strong {
        font-size: 16px;
    }

    .add-btn {
        font-size: 12px;
        padding: 9px 8px;
        gap: 5px;
    }

    .quick-btn {
        width: 36px;
        height: 36px;
    }

    .offers-wrap {
        padding: 18px 14px 6px;
        border-radius: 18px;
    }

    .scroller .card {
        min-width: 200px;
        max-width: 200px;
    }

    .pm-grid {
        grid-template-columns: 1fr;
    }

    .pm-main-img {
        min-height: 220px;
        max-height: 280px;
    }

    .pm-info {
        padding: 18px 16px 22px;
    }

    .modal-box {
        padding: 22px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        left: 16px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .brand-text p {
        display: none;
    }

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