/* ========================================
   RMO Shop — Styles
   Colors: #4cad49, #FFFFFF, #F1F1F1
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #4cad49;
    --green-dark: #3a8a38;
    --green-light: #e8f5e8;
    --white: #FFFFFF;
    --light: #F1F1F1;
    --dark: #1a1a1a;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ========== HEADER ========== */
.header {
    background: var(--green);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--white);
    margin-left: 12px;
    line-height: 1;
}

.logo img { height: 30px; }

.logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 2px;
    color: var(--white);
    padding-left: 33px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-decoration: none;
    position: relative;
}

.icon-btn:hover { background: rgba(255,255,255,0.15); }

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--white);
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account dropdown */
.account-wrapper {
    position: relative;
}

.account-btn.signed-in svg {
    fill: var(--white);
    stroke: var(--white);
}

#account-btn.signed-in {
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    z-index: 1001;
    overflow: hidden;
}

.account-dropdown.open {
    display: block;
}

.account-info {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--gray-light);
}

.account-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.account-email {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 2px;
}

.account-links {
    padding: 8px;
}

.account-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.15s;
}

.account-links a:hover {
    background: var(--light);
}

.account-logout {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-top: 1px solid var(--gray-light);
    background: none;
    font-size: 0.9rem;
    color: #dc2626;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.account-logout:hover {
    background: #fef2f2;
}

/* Hamburger */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

/* Search bar */
.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--green-dark);
}

.search-bar.open { max-height: 70px; }

.search-bar-inner {
    display: flex;
    padding: 10px 16px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
}

.search-submit {
    padding: 10px 20px;
    background: var(--white);
    color: var(--green);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

/* ========== NAV DRAWER ========== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.open { opacity: 1; visibility: visible; }

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    z-index: 301;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.nav-drawer.open { left: 0; }

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--green);
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.nav-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.nav-division {
    border-bottom: 1px solid var(--gray-light);
}

.nav-division-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: background 0.2s;
}

.nav-division-header:hover { background: var(--light); }

.nav-division-header .arrow {
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: var(--gray);
}

.nav-division.open .arrow { transform: rotate(180deg); }

.nav-categories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-division.open .nav-categories { max-height: 500px; }

.nav-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 36px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.nav-category:hover {
    background: var(--green-light);
    color: var(--green);
}

.nav-category .cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav-loading {
    padding: 20px;
    text-align: center;
    color: var(--gray);
}

/* ========== PAGE CONTAINER ========== */
.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(255,255,255,0.22) 0%, transparent 38%),
        radial-gradient(circle at 12% 88%, rgba(255,255,255,0.16) 0%, transparent 42%),
        linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: 64px 32px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.07);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-accent {
    color: #fff;
    border-bottom: 4px solid rgba(255,255,255,0.55);
    padding-bottom: 2px;
}

.hero p {
    font-size: 1.08rem;
    opacity: 0.92;
    max-width: 520px;
    margin-bottom: 24px;
}

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

.btn-hero {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.btn-hero:active { transform: scale(0.97); }

.btn-hero-solid {
    background: var(--white);
    color: var(--green-dark);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn-hero-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.24); }

.btn-hero-ghost {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-hero-ghost:hover { background: rgba(255,255,255,0.22); }

/* ========== VALUE PROPS STRIP ========== */
.value-props {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

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

.value-prop {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.value-prop-ico {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-prop-ico svg { width: 20px; height: 20px; }

.value-prop-text { font-size: 0.78rem; color: var(--gray); line-height: 1.35; }
.value-prop-text strong { display: block; color: var(--dark); font-size: 0.86rem; }

/* ========== SECTION ========== */
.section { margin-bottom: 40px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.35rem;
    color: var(--dark);
    position: relative;
    padding-left: 14px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.05em;
    border-radius: 3px;
    background: var(--green);
}

.section-header a {
    color: var(--green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--green);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-light);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-card-img .placeholder {
    font-size: 3rem;
    color: var(--gray-light);
}

.product-card-body { padding: 12px; }

.product-card-body h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
}

.compare-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.8rem;
}

.member-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.rating {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-top: 4px;
}

.tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-pop { background: #fef3c7; color: #92400e; }
.tag-new { background: #d1fae5; color: #065f46; }
.tag-sell { background: #fee2e2; color: #991b1b; }
.tag-val { background: #dbeafe; color: #1e40af; }

/* ========== CATEGORY GRID ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(76,173,73,0.15);
}

.category-card .cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--green);
}

.category-card h3 {
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 600;
}

.category-card .count {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 2px;
}

/* ========== PRODUCT DETAIL ========== */
.pdp { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) { .pdp { grid-template-columns: 1fr 1fr; } }

.pdp-gallery {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.pdp-gallery .placeholder { font-size: 6rem; color: var(--gray-light); }

.pdp-info { padding: 8px 0; }

.pdp-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pdp-seller {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.pdp-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.pdp-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green);
}

.pdp-compare {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--gray);
}

.pdp-member-price {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.pdp-stock {
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.pdp-stock.in-stock { color: var(--green); }
.pdp-stock.out-of-stock { color: #dc2626; }

.pdp-desc {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Group items (variants) */
.pdp-variants {
    margin-bottom: 20px;
}

.pdp-variants h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--dark);
}

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

.variant-option {
    padding: 8px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    color: var(--dark);
    background: var(--white);
}

.variant-option:hover,
.variant-option.active {
    border-color: var(--green);
    color: var(--green);
}

.variant-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gray-light);
    cursor: pointer;
    transition: border-color 0.2s;
}

.variant-color:hover,
.variant-color.active {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green-light);
}

/* Quantity & Add to cart */
.pdp-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.qty-control button:hover { background: var(--gray-light); }

.qty-control input {
    width: 48px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--green);
    color: var(--white);
    flex: 1;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
    background: var(--white);
    color: var(--green);
    border: 2px solid var(--green);
}

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

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Specs / Attributes */
.pdp-specs {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 24px;
}

.pdp-specs h3 {
    padding: 16px 20px;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.spec-row {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid var(--light);
    font-size: 0.9rem;
}

.spec-row:last-child { border-bottom: none; }
.spec-label { font-weight: 600; width: 40%; color: var(--dark); }
.spec-value { width: 60%; color: var(--gray); }

/* ========== CART ========== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) { .cart-layout { grid-template-columns: 1fr 340px; } }

.cart-items {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--light);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

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

.cart-item-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .seller-tag {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--green);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 76px;
}

.cart-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--gray-light);
}

.summary-row .savings { color: var(--green); }

.cart-summary .btn { width: 100%; margin-top: 16px; }

/* ========== CHECKOUT ========== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) { .checkout-layout { grid-template-columns: 1fr 380px; } }

.checkout-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.checkout-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 500px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; }

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--green);
}

/* Division order split notice */
.order-split-notice {
    background: var(--green-light);
    border: 1px solid var(--green);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--green-dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.order-split-notice strong { font-weight: 700; }

/* Shipping options */
.shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.shipping-option.selected { border-color: var(--green); background: var(--green-light); }

.shipping-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.shipping-option .ship-cost {
    font-weight: 600;
    color: var(--green);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--green);
    text-decoration: none;
}

.breadcrumb span { color: var(--gray-light); }

/* ========== PRODUCT LISTING (Category page) ========== */
.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.listing-header h1 {
    font-size: 1.4rem;
}

.listing-sort select {
    padding: 8px 12px;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    background: var(--white);
}

.listing-count {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

/* ========== EMPTY & LOADING STATES ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state h3 { margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { font-size: 0.95rem; }

.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== FOOTER ========== */
.footer {
    background: var(--green);
    color: var(--white);
    padding: 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Footer Top: Brand + Slogan */
.footer-top {
    padding: 32px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.footer-slogan {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
    font-style: italic;
}

/* Footer Link Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

/* Footer Disclaimer */
.footer-disclaimer {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.72rem;
    line-height: 1.5;
    color: #ffffff;
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
}

/* Footer Bottom: Copyright + Legal */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
}

.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 599px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 500;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ========== PAGE TITLE ========== */
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ========== VARIANT PILL SELECTORS (PDP) ========== */
.pdp-variant-selectors { margin-bottom: 20px; }

.variant-group {
    margin-bottom: 16px;
}

.variant-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

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

.variant-pill {
    padding: 8px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--white);
    color: var(--dark);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.variant-pill:hover {
    border-color: var(--green);
    color: var(--green);
}

.variant-pill.active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.variant-pill.active .cond-dot {
    border-color: var(--white);
}

/* Condition dots */
.cond-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.cond-dot.cond-excellent { background: #22c55e; }
.cond-dot.cond-good { background: #f59e0b; }
.cond-dot.cond-fair { background: #f97316; }

.condition-legend {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.8;
}

.condition-legend strong {
    color: var(--dark);
}

/* Condition badge (cards + PDP) */
.condition-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.condition-badge.condition-excellent { background: #dcfce7; color: #166534; }
.condition-badge.condition-good { background: #fef3c7; color: #92400e; }
.condition-badge.condition-fair { background: #ffedd5; color: #9a3412; }

.pdp-condition { margin-bottom: 12px; font-size: 0.9rem; }

/* Variant count label on cards */
.variant-count {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
}

/* PDP placeholder icon */
.placeholder-icon {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--light);
    color: var(--gray-light);
}

.pdp-placeholder {
    font-size: 6rem;
    color: var(--gray-light);
}

/* PDP savings badge */
.pdp-savings {
    background: #dc2626;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* PDP short desc */
.pdp-short-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* PDP full description */
.pdp-full-desc {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
}

.pdp-full-desc h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.pdp-full-desc p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* PDP meta (SKU, UPC, MPN) */
.pdp-meta {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr { border-bottom: 1px solid var(--light); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 12px 20px; font-size: 0.9rem; }
.spec-table .spec-label { font-weight: 600; width: 40%; color: var(--dark); }
.spec-table .spec-value { width: 60%; color: var(--gray); }

/* Cart variant detail */
.cart-item-variant {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 4px;
}

/* Add to cart button */
.btn-add-cart {
    min-width: 160px;
    text-align: center;
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== PAYMENT / STRIPE ========== */
.card-field {
    padding: 11px 14px;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.2s;
}

.card-field:hover {
    border-color: var(--gray);
}

.card-field.StripeElement--focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(76,173,73,0.15);
}

.card-field.StripeElement--invalid {
    border-color: #dc2626;
}

#pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#pay-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Trade-In page */
.trade-in-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 400px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 599px) {
    .hero { padding: 40px 22px; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 0.98rem; }
    .hero-cta .btn-hero { flex: 1; text-align: center; }
    .pdp-title { font-size: 1.2rem; }
    .pdp-price { font-size: 1.4rem; }
    .footer-brand { flex-direction: column; text-align: center; }
    .footer-brand-text { align-items: center; }
    .variant-pill { padding: 6px 12px; font-size: 0.8rem; }
    .pdp-actions { flex-direction: column; }
    .btn-add-cart { width: 100%; }
}

/* ========== HOME CROSS-SELL SERVICES ========== */
.services-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 700px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}
.service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--green);
}
.service-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 4px;
}
.service-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.service-body p {
    font-size: 0.86rem;
    color: var(--gray);
    margin-bottom: 10px;
}
.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dark);
}
.service-card:hover .service-link { text-decoration: underline; }

/* ========== PDP TRUST ROW ========== */
.pdp-trust {
    list-style: none;
    margin: 18px 0 4px;
    padding: 16px;
    background: var(--green-light);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
}
@media (min-width: 600px) {
    .pdp-trust { grid-template-columns: 1fr 1fr; }
}
.pdp-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gray);
}
.pdp-trust strong {
    display: block;
    color: var(--dark);
    font-size: 0.88rem;
}
.pdp-trust-ico {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== PDP SECTIONS (reviews / related) ========== */
.pdp-section { margin-top: 32px; }
.pdp-section-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-light);
}
.reviews-empty { color: var(--gray); font-size: 0.9rem; }
.reviews-summary { margin-bottom: 16px; }
.reviews-score { display: flex; align-items: baseline; gap: 10px; }
.reviews-score-num { font-size: 2rem; font-weight: 700; color: var(--dark); }
.reviews-stars { color: #f5a623; font-weight: 600; }
.reviews-count { color: var(--gray); font-size: 0.85rem; }
.reviews-list { display: grid; gap: 14px; }
.review-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-stars { color: #f5a623; letter-spacing: 1px; }
.review-verified {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--green-light);
    padding: 2px 8px;
    border-radius: 20px;
}
.review-title { font-weight: 600; font-size: 0.92rem; }
.review-body { color: var(--dark); font-size: 0.88rem; margin: 4px 0; }
.review-date { color: var(--gray); font-size: 0.75rem; }

#order-result:not(:empty) { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }


/* ============================================================
   Footer — matches the rmous.org blueprint
   ============================================================ */
.footer {
    background: var(--green);
    color: #fff;
    margin-top: auto;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 0;
}
.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 3fr;
    gap: 40px;
    padding-bottom: 28px;
}
@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr; }
}
.footer-brand-block .footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.footer-tagline {
    font-style: italic;
    color: rgba(255,255,255,0.85);
    margin: 0 0 14px;
    font-size: 0.875rem;
}
.footer-phone {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 16px;
}
.footer-phone strong {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 6px;
}
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: background 0.15s;
}
.footer-social .social-link:hover { background: rgba(255,255,255,0.30); }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 28px;
}
@media (max-width: 700px) {
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
.footer-cols .fc-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 12px;
}
.footer-cols a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.875rem;
}
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-legal-box {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 16px 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}
.footer-legal-box .footer-legal-note { margin: 0; }
.footer-links-row {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 14px 0;
}
.footer-links-row .flr-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-links-row a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
}
.footer-links-row a:hover { text-decoration: underline; }
.footer-copy-line {
    background: rgba(0,0,0,0.12);
    margin: 0 -24px;
    padding: 14px 24px;
    text-align: center;
    color: rgba(255,255,255,0.95);
    font-size: 0.8rem;
}
@media (max-width: 600px) {
    .footer-inner { padding: 28px 16px 0; }
    .footer-links-row .flr-links { gap: 16px; }
    .footer-copy-line { margin: 0 -16px; }
}

/* ============================================================
   Home — Ways to Shop (Buy / Lease / Sell / Trade)
   ============================================================ */
.ways-section .section-header { align-items: baseline; gap: 16px; }
.ways-section .ways-tagline {
    color: var(--gray); font-size: 0.875rem; letter-spacing: 0.06em;
    text-transform: uppercase; font-weight: 600;
}
.ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.way-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: 22px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--gray-light);
    text-decoration: none; color: var(--dark);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
}
.way-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}
.way-card-ico {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--green-light); color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
}
.way-card-body { display: flex; flex-direction: column; gap: 6px; }
.way-card-tag {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--green-dark);
    display: inline-flex; align-items: center; gap: 8px;
}
.way-card-badge {
    background: var(--green); color: #fff;
    font-size: 0.625rem; padding: 2px 8px; border-radius: 999px;
    letter-spacing: 0.04em;
}
.way-card h3 { font-size: 1.0625rem; margin: 0; line-height: 1.3; }
.way-card p { font-size: 0.875rem; color: var(--gray); margin: 0; line-height: 1.5; }
.way-card-link {
    margin-top: 8px; color: var(--green-dark);
    font-weight: 600; font-size: 0.875rem;
}
.way-card:hover .way-card-link { text-decoration: underline; }
