/* ============================================================
   SHARED STYLES — header, nav, footer, buttons.
   Loaded by every page. Page-specific styles stay inline.
   ============================================================ */

:root {
    --green-900: #1b5e20;
    --green-800: #2e7d32;
    --green-700: #388e3c;
    --green-600: #43a047;
    --green-500: #4caf50;
    --green-400: #66bb6a;
    --green-300: #81c784;
    --green-200: #a5d6a7;
    --green-100: #c8e6c9;
    --green-50: #e8f5e9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--green-50);
    color: #1a1a1a;
    line-height: 1.5;
}

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

/* Top bar */

.top-bar {
    background: var(--green-900);
    color: var(--green-100);
    font-size: 13px;
    padding: 6px 0;
}

.top-bar .inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
}

.top-bar a {
    color: var(--green-200);
    margin-left: 18px;
}

.top-bar a:hover {
    color: white;
}

/* Header */

.header {
    background: white;
    border-bottom: 1px solid var(--green-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--green-800);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.search-wrap {
    flex: 1;
    display: flex;
    max-width: 720px;
    border: 2px solid var(--green-600);
    border-radius: 30px;
    overflow: hidden;
}

.search-wrap select {
    border: none;
    background: var(--green-50);
    padding: 0 14px;
    font-size: 14px;
    border-right: 1px solid var(--green-200);
}

.search-wrap input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
}

.search-wrap button {
    background: var(--green-600);
    border: none;
    padding: 0 26px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 22px;
    font-size: 14px;
    font-weight: 500;
}

.header-actions a.active {
    color: var(--green-700);
}

.cart-count {
    background: var(--green-600);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Category nav */

.cat-nav {
    background: white;
    border-bottom: 1px solid var(--green-100);
}

.cat-nav .inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.cat-nav a {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.cat-nav a:hover,
.cat-nav a.active {
    color: var(--green-700);
    border-bottom-color: var(--green-600);
}

.soon-link {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    opacity: 0.7;
}

.soon-link:hover {
    color: #444 !important;
    border-bottom-color: transparent !important;
}

.soon-badge {
    background: var(--green-100);
    color: var(--green-800);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Footer */

.footer {
    background: var(--green-900);
    color: var(--green-200);
    padding: 48px 24px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 14px;
}

.footer a {
    display: block;
    color: var(--green-300);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

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

    .search-wrap {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
   HOME VIEW — product grid
   ============================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-900);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
    display: block;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(27, 94, 32, 0.18);
    border-color: var(--green-400);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--green-50);
    overflow: hidden;
}

.watchlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 150ms ease, background-color 150ms ease;
}

.watchlist-btn:hover {
    transform: scale(1.08);
}

.watchlist-btn svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: color 150ms ease, fill 150ms ease;
}

.watchlist-btn.active svg {
    color: #ef4444;
    fill: #ef4444;
}

.cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, background-color 150ms ease;
}

.product-card:hover .cart-btn,
.cart-btn.active {
    opacity: 1;
    transform: translateY(0);
}

.cart-btn:hover {
    background: var(--green-700);
}

.cart-btn.active {
    background: #1a1a1a;
}

.cart-btn svg {
    width: 16px;
    height: 16px;
    color: white;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-body {
    padding: 16px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 4px;
}

.product-meta {
    font-size: 13px;
    color: #666;
}

.product-seller {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* ============================================================
   SEARCH DROPDOWN
   ============================================================ */

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    z-index: 200;
    display: none;
}

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

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.search-dropdown-item:hover,
.search-dropdown-item.highlighted {
    background: #e8f5e9;
}

.search-dropdown-item+.search-dropdown-item {
    border-top: 1px solid #f1f1f1;
}

.search-dropdown-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}

.search-dropdown-info {
    min-width: 0;
    flex: 1;
}

.search-dropdown-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-price {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 700;
    margin-top: 1px;
}

.search-dropdown-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.search-dropdown-viewall {
    display: block;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
    cursor: pointer;
    background: #f7fbf7;
    border-top: 1px solid #f1f1f1;
}

.search-dropdown-viewall:hover {
    background: #e8f5e9;
}

/* ============================================================
   PRODUCT VIEW
   ============================================================ */

.product-page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
}

.product-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 88px;
}

.gallery-frame {
    position: relative;
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--green-100);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.gallery-watchlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 150ms ease;
}

.gallery-watchlist-btn:hover {
    transform: scale(1.08);
}

.gallery-watchlist-btn svg {
    width: 19px;
    height: 19px;
    color: #6b7280;
    transition: color 150ms ease, fill 150ms ease;
}

.gallery-watchlist-btn.active svg {
    color: #ef4444;
    fill: #ef4444;
}

.sell-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 4px;
    border-top: 1px solid var(--green-100);
    flex-wrap: wrap;
}

.sell-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sell-bar-label {
    font-size: 14px;
    color: #1a1a1a;
}

.pill-btn {
    padding: 9px 16px;
    border-radius: 30px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.pill-btn:hover {
    background: var(--green-50);
    border-color: var(--green-600);
}

.pill-btn.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-btn.share-btn svg {
    width: 14px;
    height: 14px;
}

.purchase-panel {
    background: white;
    border: 1px solid var(--green-100);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-section {
    padding: 28px;
}

.panel-section:has(.ship-info) {
    padding-bottom: 16px;
}

.panel-section+.panel-section {
    border-top: 1px solid var(--green-100);
}

.product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.seller-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin-top: 10px;
    border-top: 1px solid var(--green-100);
    border-bottom: 1px solid var(--green-100);
    cursor: pointer;
}

.seller-preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8b5cf6;
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-preview-info {
    flex: 1;
    min-width: 0;
}

.seller-preview-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.seller-preview-name span {
    font-weight: 400;
    color: #6b7280;
}

.seller-preview-meta {
    font-size: 13px;
    margin-top: 2px;
}

.seller-preview-meta a {
    color: var(--green-700);
    text-decoration: underline;
}

.seller-preview-meta .sep {
    color: #d1d5db;
    margin: 0 6px;
}

.message-btn {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
}

.message-btn:hover {
    background: var(--green-50);
}

.seller-preview-chevron {
    color: #9ca3af;
    flex-shrink: 0;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-800);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.best-offer {
    font-size: 14px;
    color: #6b7280;
}

.financing-line {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.info-divider {
    border-top: 1px solid var(--green-100);
    margin: 14px 0;
}

.condition-line {
    font-size: 14px;
    color: #1a1a1a;
}

.condition-line-label {
    font-weight: 700;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 100ms ease;
}

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

.btn:focus-visible {
    outline: 2px solid var(--green-600);
    outline-offset: 2px;
}

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

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

.btn-offer {
    background: white;
    color: var(--green-800);
    border: 1.5px solid var(--green-300);
    flex: 1;
}

.btn-offer:hover {
    background: var(--green-50);
    border-color: var(--green-600);
}

.add-to-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.add-to-cart-link:hover {
    background: #f3f4f6;
}

.add-to-cart-link svg {
    width: 17px;
    height: 17px;
    transition: color 150ms ease;
}

.add-to-cart-link.active {
    color: var(--green-700);
}

.add-to-cart-link.active svg {
    color: var(--green-700);
}

.ship-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.ship-row {
    display: flex;
    gap: 20px;
    padding: 12px 0;
}

.ship-row:last-child {
    padding-bottom: 0;
}

.ship-row+.ship-row {
    border-top: 1px solid var(--green-100);
}

.ship-label {
    width: 84px;
    flex-shrink: 0;
    font-size: 13px;
    color: #6b7280;
    padding-top: 1px;
}

.ship-value {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.6;
}

.ship-value b {
    font-weight: 700;
}

.ship-value .muted {
    color: #9ca3af;
    display: block;
    margin-top: 4px;
}

.payment-icons {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.payment-badge {
    width: 50px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.payment-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-badge.visa {
    font-style: italic;
    font-weight: 800;
    font-size: 13px;
    color: #1a1f71;
    letter-spacing: -0.5px;
}

.description-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.description-text {
    color: #374151;
    line-height: 1.65;
    font-size: 14px;
}

.similar-section {
    margin-top: 40px;
}

.similar-section h2 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.similar-item {
    background: white;
    border: 1px solid var(--green-100);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
    cursor: pointer;
}

.similar-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--green-300);
}

.similar-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--green-50);
    display: block;
}

.similar-item-info {
    padding: 14px;
}

.similar-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--green-800);
    font-variant-numeric: tabular-nums;
}

.similar-item-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 3px;
}

/* ============================================================
   OFFER MODAL
   ============================================================ */

.offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.offer-modal.active {
    display: flex;
}

.offer-modal-content {
    background: white;
    border-radius: 16px;
    padding: 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modal-in 200ms ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--green-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background-color 150ms ease;
}

.modal-close:hover {
    background: var(--green-100);
    color: #1a1a1a;
}

.offer-modal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    padding-right: 32px;
}

.offer-modal-content p {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.offer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: -6px;
}

.offer-form input,
.offer-form textarea {
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 150ms ease;
}

.offer-form input:focus,
.offer-form textarea:focus {
    outline: none;
    border-color: var(--green-600);
}

.offer-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.offer-form-buttons button {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.offer-submit {
    background: var(--green-600);
    color: white;
}

.offer-submit:hover {
    background: var(--green-700);
}

.offer-cancel {
    background: #f3f4f6;
    color: #374151;
}

.offer-cancel:hover {
    background: #e5e7eb;
}

/* ============================================================
   CART VIEW
   ============================================================ */

.cart-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

.cart-page h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.cart-items {
    background: white;
    border: 1px solid var(--green-100);
    border-radius: 16px;
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.cart-item+.cart-item {
    border-top: 1px solid var(--green-100);
}

.cart-item-img {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--green-50);
    flex-shrink: 0;
}

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

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--green-800);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease, color 150ms ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

.cart-item-remove svg {
    width: 18px;
    height: 18px;
}

.cart-summary {
    background: white;
    border: 1px solid var(--green-100);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 88px;
}

.cart-summary h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.summary-row.total {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    padding-top: 12px;
    border-top: 1px solid var(--green-100);
    margin-top: 4px;
}

.checkout-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--green-600);
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.checkout-btn:hover {
    background: var(--green-700);
}

.continue-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--green-700);
    text-decoration: underline;
    cursor: pointer;
}

.cart-empty {
    background: white;
    border: 1px solid var(--green-100);
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
}

.cart-empty svg {
    width: 48px;
    height: 48px;
    color: var(--green-300);
    margin-bottom: 16px;
}

.cart-empty h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-empty p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.cart-empty a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--green-600);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.cart-empty a:hover {
    background: var(--green-700);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .product-row {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 800px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}
