/*
 * Shams FoodHub
 * Public storefront stylesheet
 *
 * Brand:
 * Green  #1B5E20
 * Orange #F78E1E
 * White  #FFFFFF
 */

:root {
    --brand-green: #1B5E20;
    --brand-green-dark: #124417;
    --brand-green-light: #EAF5EC;

    --brand-orange: #F78E1E;
    --brand-orange-dark: #D96F08;
    --brand-orange-light: #FFF3E5;

    --white: #FFFFFF;
    --black: #111111;

    --text-primary: #202520;
    --text-secondary: #687168;
    --text-muted: #8A938B;

    --border: #E7EBE7;
    --background: #FAFCFA;
    --surface: #FFFFFF;

    --success: #2E7D32;
    --danger: #C62828;

    --shadow-soft:
        0 4px 18px rgba(27, 94, 32, 0.07);

    --shadow-card:
        0 8px 28px rgba(27, 94, 32, 0.09);

    --shadow-hover:
        0 16px 40px rgba(27, 94, 32, 0.14);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --container-width: 1240px;

    --transition:
        180ms ease;
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);

    font-family:
        "Montserrat",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;

    background: var(--brand-green);
    color: white;

    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 20px;
}


/* ============================================================
   HEADER
   ============================================================ */

.shop-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.shop-header-inner {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* Brand */

.shop-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;

    color: var(--brand-green);
}

.shop-logo-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 3px solid var(--brand-green);
    border-radius: 50%;

    font-size: 19px;
    font-weight: 800;
}

.shop-logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.shop-logo-text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.shop-logo-text small {
    margin-top: 4px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* Search */

.shop-search {
    flex: 1;

    max-width: 500px;
    margin-left: auto;

    display: flex;

    background: #F5F8F5;

    border: 1px solid transparent;
    border-radius: 50px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.shop-search:focus-within {
    border-color: rgba(27, 94, 32, 0.25);

    box-shadow:
        0 0 0 4px rgba(27, 94, 32, 0.06);
}

.shop-search input {
    width: 100%;

    border: 0;
    outline: 0;
    background: transparent;

    padding: 12px 18px;

    color: var(--text-primary);
}

.shop-search button {
    border: 0;
    background: var(--brand-green);
    color: white;

    padding: 0 20px;

    border-radius: 50px;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.shop-search button:hover {
    background: var(--brand-green-dark);
}


/* Header navigation */

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;

    flex-shrink: 0;
}

.header-link,
.login-link {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;

    transition: color var(--transition);
}

.header-link:hover,
.login-link:hover {
    color: var(--brand-green);
}

.header-register {
    background: var(--brand-orange);
    color: white;

    padding: 10px 16px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.header-register:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-1px);
}

.cart-icon-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 13px;
    font-weight: 700;

    color: var(--brand-green);
}

.cart-badge {
    min-width: 19px;
    height: 19px;

    display: grid;
    place-items: center;

    margin-left: -3px;

    background: var(--brand-orange);
    color: white;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 800;
}

.mobile-menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    cursor: pointer;
}


/* ============================================================
   MAIN
   ============================================================ */

.shop-main {
    width: 100%;
}

.store-section,
.catalog-page,
.product-detail-page {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin: 0 auto;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 560px;

    display: flex;
    align-items: center;

    padding:
        80px max(20px, calc((100vw - var(--container-width)) / 2));

    background:
        linear-gradient(
            110deg,
            #F5FBF6 0%,
            #FFFFFF 62%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(650px, 100%);
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--brand-orange);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    color: var(--brand-green);

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;

    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: var(--text-primary);
}

.hero p {
    max-width: 560px;

    margin: 24px 0;

    color: var(--text-secondary);

    font-size: 17px;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    margin-top: 45px;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    color: var(--brand-green);

    font-size: 14px;
}

.hero-trust span {
    color: var(--text-muted);

    font-size: 11px;
}

.hero-decoration {
    position: absolute;

    right: 5%;
    top: 50%;

    width: 430px;
    height: 430px;

    transform: translateY(-50%);
}

.hero-circle {
    width: 100%;
    height: 100%;

    border: 22px solid rgba(27, 94, 32, 0.08);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(247, 142, 30, 0.12),
            transparent 65%
        );
}

.hero-floating-card {
    position: absolute;

    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    background: white;

    border-radius: 20px;

    box-shadow: var(--shadow-card);

    font-size: 38px;

    animation: float 4s ease-in-out infinite;
}

.hero-card-one {
    top: 10%;
    left: 4%;
}

.hero-card-two {
    right: 2%;
    top: 38%;

    animation-delay: -1s;
}

.hero-card-three {
    bottom: 5%;
    left: 35%;

    animation-delay: -2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 9px;

    padding: 11px 18px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

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

.btn-primary {
    background: var(--brand-orange);
    color: white;

    box-shadow:
        0 5px 15px rgba(247, 142, 30, 0.18);
}

.btn-primary:hover {
    background: var(--brand-orange-dark);

    box-shadow:
        0 9px 24px rgba(247, 142, 30, 0.25);
}

.btn-outline {
    background: white;

    color: var(--brand-green);

    border: 1px solid var(--brand-green);
}

.btn-large {
    min-height: 50px;
    padding: 13px 22px;
}

.btn-full {
    width: 100%;
}

.btn-disabled,
.btn:disabled {
    background: #E5E8E5;
    color: #929992;

    cursor: not-allowed;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.store-section {
    padding: 80px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--brand-green);

    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   CATEGORY CARDS
   ============================================================ */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );

    gap: 18px;
}

.category-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-soft);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-hover);
}

.category-card-image {
    height: 170px;

    overflow: hidden;

    background: var(--brand-green-light);
}

.category-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 400ms ease;
}

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

.category-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 16px;
}

.category-card-content h3 {
    margin: 0;

    font-size: 14px;
    font-weight: 700;
}

.category-card-content span {
    color: var(--brand-orange);

    font-size: 18px;
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );

    gap: 22px;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-soft);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-hover);
}

.product-card-link {
    display: block;
}

.product-card-image {
    position: relative;

    height: 230px;

    overflow: hidden;

    background: #F4F7F4;
}

.product-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 450ms ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.045);
}

.product-card-placeholder,
.product-detail-placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #EDF6EF,
            #F8F2E9
        );

    font-size: 50px;
}

.discount-badge,
.stock-badge {
    position: absolute;

    top: 12px;

    padding: 6px 9px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;
}

.discount-badge {
    left: 12px;

    background: var(--brand-orange);
    color: white;
}

.stock-badge {
    right: 12px;

    background: white;
    color: var(--danger);

    box-shadow: var(--shadow-soft);
}

.product-card-content {
    padding: 16px 16px 8px;
}

.product-card-category {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-card-title {
    min-height: 43px;

    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.5;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.current-price {
    color: var(--brand-green);

    font-size: 17px;
    font-weight: 800;
}

.unit {
    color: var(--text-muted);

    font-size: 11px;
}

.compare-price {
    margin-left: 5px;

    color: var(--text-muted);

    font-size: 11px;

    text-decoration: line-through;
}

.product-card-actions {
    padding: 10px 16px 16px;
}


/* ============================================================
   CATALOG
   ============================================================ */

.catalog-page {
    padding: 50px 0 80px;
}

.catalog-header {
    margin-bottom: 40px;
}

.catalog-header h1 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.catalog-description {
    margin: 8px 0 0;

    color: var(--text-secondary);
}

.product-list-layout {
    display: grid;

    grid-template-columns: 220px 1fr;

    align-items: start;

    gap: 40px;
}

.category-sidebar {
    position: sticky;
    top: 100px;

    padding: 22px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-soft);
}

.sidebar-heading h2 {
    margin: 0 0 18px;

    font-size: 18px;
}

.category-sidebar ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.category-sidebar li + li {
    margin-top: 4px;
}

.category-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px;

    border-radius: 8px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;

    transition:
        background var(--transition),
        color var(--transition);
}

.category-sidebar a:hover,
.category-sidebar a.active {
    background: var(--brand-green-light);
    color: var(--brand-green);
}

.catalog-toolbar {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 16px;
}

.catalog-result-label {
    color: var(--text-muted);

    font-size: 12px;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-top: 45px;
}

.pagination-button {
    padding: 9px 14px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--brand-green);

    font-size: 12px;
    font-weight: 700;
}

.pagination-current {
    color: var(--text-secondary);

    font-size: 12px;
}


/* ============================================================
   PRODUCT DETAIL
   ============================================================ */

.product-detail-page {
    padding: 35px 0 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 30px;

    color: var(--text-muted);

    font-size: 11px;
}

.breadcrumb a {
    color: var(--brand-green);
    font-weight: 600;
}

.product-detail {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    gap: 70px;

    padding: 35px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);
}

.product-detail-image {
    min-height: 500px;

    overflow: hidden;

    border-radius: var(--radius-md);

    background: #F5F8F5;
}

.product-detail-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 500ms ease;
}

.product-detail-image:hover img {
    transform: scale(1.025);
}

.product-detail-info {
    display: flex;
    flex-direction: column;

    justify-content: center;
}

.category-breadcrumb {
    width: fit-content;

    margin-bottom: 12px;

    color: var(--brand-orange);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-info h1 {
    margin: 0 0 15px;

    color: var(--text-primary);

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;

    margin-bottom: 25px;
}

.product-detail-price .current-price {
    font-size: 30px;
}

.product-description {
    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.8;

    margin-bottom: 25px;
}

.stock-note {
    display: flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    margin-bottom: 20px;
    padding: 8px 12px;

    background: var(--brand-green-light);

    border-radius: 7px;

    color: var(--brand-green);

    font-size: 11px;
}

.stock-indicator {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);
}

.stock-note.out-of-stock {
    background: #FDEEEE;
    color: var(--danger);
}

.add-to-cart-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.quantity-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quantity-control label {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;

    height: 50px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 8px;
}

.quantity-button {
    width: 40px;
    height: 100%;

    border: 0;
    background: #F7F9F7;

    color: var(--brand-green);

    cursor: pointer;

    font-size: 18px;
}

.quantity-input-wrapper input {
    width: 48px;
    height: 100%;

    border: 0;
    outline: 0;

    text-align: center;

    font-weight: 700;
}

.add-to-cart-button {
    flex: 1;
}

.related-products {
    padding-top: 80px;
}


/* ============================================================
   BRAND MESSAGE
   ============================================================ */

.brand-message {
    position: relative;
    overflow: hidden;

    margin-top: 30px;
    padding: 75px 20px;

    background:
        linear-gradient(
            135deg,
            var(--brand-green),
            var(--brand-green-dark)
        );

    color: white;

    text-align: center;
}

.brand-message::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -150px;
    left: -100px;

    border: 30px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.brand-message > div {
    position: relative;

    width: min(600px, 100%);
    margin: auto;
}

.brand-message .section-eyebrow {
    color: #FFC275;
}

.brand-message h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 46px);
}

.brand-message p {
    color: rgba(255,255,255,0.78);

    font-size: 14px;

    margin: 15px 0 25px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.shop-footer {
    margin-top: 0;

    background: #102F16;
    color: white;
}

.shop-footer-inner {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin: auto;
    padding: 55px 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo > span:last-child {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    font-size: 17px;
}

.footer-logo small {
    margin-top: 3px;

    color: #A9C9AD;

    font-size: 8px;
    letter-spacing: 2px;
}

.footer-brand p {
    max-width: 400px;

    color: #A9C9AD;

    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;

    gap: 80px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links h3 {
    margin: 0 0 5px;

    color: white;

    font-size: 12px;
}

.footer-links a {
    color: #A9C9AD;

    font-size: 11px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin: auto;
    padding: 18px 0;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: #77967B;

    font-size: 10px;
}


/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.shop-flashes {
    position: fixed;

    top: 90px;
    right: 20px;

    z-index: 2000;

    width: min(
        calc(100% - 40px),
        400px
    );
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
    padding: 13px 15px;

    background: white;

    border-left: 4px solid var(--brand-green);
    border-radius: 8px;

    box-shadow: var(--shadow-card);

    font-size: 12px;
}

.flash-success {
    border-left-color: var(--success);
}

.flash-danger,
.flash-error {
    border-left-color: var(--danger);
}

.flash-close {
    border: 0;
    background: transparent;

    color: var(--text-muted);

    font-size: 18px;

    cursor: pointer;
}


/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    padding: 50px 20px;

    text-align: center;

    color: var(--text-secondary);
}

.empty-state-icon {
    margin-bottom: 10px;

    font-size: 35px;
}

.empty-state h2 {
    margin: 0 0 8px;

    color: var(--text-primary);
}


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

@media (max-width: 1050px) {

    .shop-header-inner {
        gap: 15px;
    }

    .shop-header-actions {
        gap: 12px;
    }

    .hero-decoration {
        right: -80px;
        opacity: 0.65;
    }

    .product-detail {
        gap: 40px;
    }
}


@media (max-width: 850px) {

    .shop-header-inner {
        position: relative;
    }

    .shop-search {
        order: 3;

        position: absolute;

        left: 0;
        right: 0;
        top: calc(100% + 10px);

        max-width: none;

        display: none;
    }

    .shop-search.mobile-visible {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;

        margin-left: auto;
    }

    .mobile-menu-toggle span {
        width: 23px;
        height: 2px;

        background: var(--brand-green);

        transition: transform var(--transition);
    }

    .shop-header-actions {
        position: absolute;

        top: calc(100% + 1px);
        left: -20px;
        right: -20px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 15px 20px;

        background: white;

        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow-card);
    }

    .shop-header-actions.mobile-visible {
        display: flex;
    }

    .hero {
        min-height: 500px;
    }

    .hero-decoration {
        opacity: 0.3;
        right: -180px;
    }

    .product-list-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }

    .category-sidebar ul {
        display: flex;
        gap: 8px;

        overflow-x: auto;

        padding-bottom: 5px;
    }

    .category-sidebar li {
        flex-shrink: 0;
    }

    .category-sidebar li + li {
        margin-top: 0;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 400px;
    }
}


@media (max-width: 600px) {

    .shop-header-inner {
        width: calc(100% - 28px);

        min-height: 66px;
    }

    .shop-logo-text strong {
        font-size: 15px;
    }

    .shop-logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero {
        padding:
            65px 20px;

        min-height: 540px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

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

    .hero-trust {
        gap: 15px;
        margin-top: 30px;
    }

    .store-section {
        padding: 55px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

        gap: 12px;
    }

    .category-card-image {
        height: 125px;
    }

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

        gap: 12px;
    }

    .product-card-image {
        height: 165px;
    }

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

    .product-card-actions {
        padding: 8px 12px 12px;
    }

    .product-card-title {
        min-height: 42px;

        font-size: 12px;
    }

    .current-price {
        font-size: 14px;
    }

    .unit,
    .compare-price {
        font-size: 9px;
    }

    .product-detail-page,
    .catalog-page {
        width: calc(100% - 28px);
    }

    .product-detail {
        padding: 15px;

        border-radius: 14px;
    }

    .product-detail-image {
        min-height: 320px;
    }

    .product-detail-info h1 {
        font-size: 30px;
    }

    .product-detail-price .current-price {
        font-size: 25px;
    }

    .add-to-cart-form {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-control {
        width: 100%;
    }

    .quantity-input-wrapper {
        width: 100%;
    }

    .quantity-input-wrapper input {
        flex: 1;
    }

    .shop-footer-inner {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 0;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

    .shop-flashes {
        top: 75px;
    }
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PHASE 2 — SHOPPING CART
   ========================================================= */


/* ---------------------------------------------------------
   Cart page
   --------------------------------------------------------- */

.cart-page {
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.cart-page-header {
    margin-bottom: 2rem;
}

.cart-page-header h1 {
    margin: 0;

    color: var(--color-green, #1b5e20);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.cart-page-header p {
    max-width: 620px;
    margin: 0.75rem 0 0;

    color: #68736b;
    font-size: 1rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Empty cart
   --------------------------------------------------------- */

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 430px;
    padding: 3rem 1.5rem;

    text-align: center;

    background: #ffffff;

    border: 1px solid rgba(27, 94, 32, 0.08);
    border-radius: 22px;

    box-shadow: 0 10px 35px rgba(27, 94, 32, 0.06);
}

.empty-cart-icon {
    display: grid;
    place-items: center;

    width: 76px;
    height: 76px;
    margin-bottom: 1.25rem;

    background: rgba(247, 142, 30, 0.1);
    border-radius: 50%;

    font-size: 2rem;
}

.empty-cart h2 {
    margin: 0;

    color: #263228;
    font-size: 1.5rem;
}

.empty-cart p {
    max-width: 480px;
    margin: 0.75rem 0 1.5rem;

    color: #6b756d;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Cart layout
   --------------------------------------------------------- */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;

    align-items: start;
}


/* ---------------------------------------------------------
   Cart items
   --------------------------------------------------------- */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.25rem;

    padding: 1.25rem;

    background: #ffffff;

    border: 1px solid rgba(27, 94, 32, 0.08);
    border-radius: 18px;

    box-shadow: 0 6px 25px rgba(27, 94, 32, 0.045);

    transition:
        box-shadow 180ms ease,
        transform 180ms ease;
}

.cart-item:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 32px rgba(27, 94, 32, 0.09);
}


/* ---------------------------------------------------------
   Cart product image
   --------------------------------------------------------- */

.cart-item-image {
    display: block;

    width: 150px;
    height: 150px;

    overflow: hidden;

    background: #f5f7f3;
    border-radius: 14px;
}

.cart-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 300ms ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.04);
}

.cart-item-image-placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    color: #758078;
    font-size: 2rem;
}


/* ---------------------------------------------------------
   Cart item information
   --------------------------------------------------------- */

.cart-item-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.cart-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-label {
    display: block;

    margin-bottom: 0.3rem;

    color: #8a938d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-item-heading h2 {
    margin: 0;

    font-size: 1.15rem;
    line-height: 1.35;
}

.cart-item-heading h2 a {
    color: #263228;
    text-decoration: none;

    transition: color 180ms ease;
}

.cart-item-heading h2 a:hover {
    color: var(--color-green, #1b5e20);
}


/* ---------------------------------------------------------
   Remove button
   --------------------------------------------------------- */

.cart-remove {
    flex-shrink: 0;

    padding: 0.3rem 0;

    color: #9a4c4c;
    background: transparent;
    border: 0;

    cursor: pointer;

    font-size: 0.78rem;
    font-weight: 600;

    transition:
        color 180ms ease,
        opacity 180ms ease;
}

.cart-remove:hover {
    color: #c62828;
}

.cart-remove span {
    margin-right: 0.2rem;
    font-size: 1.1rem;
}


/* ---------------------------------------------------------
   Unit price
   --------------------------------------------------------- */

.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;

    margin-top: 1rem;
}

.cart-item-price .cart-item-label {
    margin-right: 0.4rem;
}

.cart-item-price strong {
    color: var(--color-green, #1b5e20);
    font-size: 1rem;
}

.cart-item-price > span:last-child {
    color: #7b847e;
    font-size: 0.8rem;
}


/* ---------------------------------------------------------
   Bottom row
   --------------------------------------------------------- */

.cart-item-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;

    margin-top: auto;
    padding-top: 1.25rem;
}

.quantity-form label {
    display: block;

    margin-bottom: 0.4rem;

    color: #6d776f;
    font-size: 0.75rem;
    font-weight: 700;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control input {
    width: 70px;
    height: 40px;

    padding: 0 0.6rem;

    color: #263228;
    background: #ffffff;

    border: 1px solid #dce2dd;
    border-radius: 9px;

    font: inherit;
    font-size: 0.9rem;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.quantity-control input:focus {
    outline: none;

    border-color: var(--color-green, #1b5e20);

    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}


/* ---------------------------------------------------------
   Item subtotal
   --------------------------------------------------------- */

.cart-item-subtotal {
    text-align: right;
}

.cart-item-subtotal strong {
    display: block;

    color: #263228;
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   Cart summary
   --------------------------------------------------------- */

.cart-summary {
    position: sticky;
    top: 100px;

    padding: 1.5rem;

    background: #ffffff;

    border: 1px solid rgba(27, 94, 32, 0.09);
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(27, 94, 32, 0.07);
}

.cart-summary-header {
    margin-bottom: 1.25rem;
}

.cart-summary-header h2 {
    margin: 0;

    color: #263228;
    font-size: 1.3rem;
}

.cart-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;

    padding-bottom: 1.25rem;

    border-bottom: 1px solid #edf0ed;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    color: #4e5951;
    font-size: 0.9rem;
}

.cart-summary-row strong {
    color: #263228;
}

.cart-summary-muted {
    color: #7b857e;
    font-size: 0.78rem;
}


/* ---------------------------------------------------------
   Cart total
   --------------------------------------------------------- */

.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.25rem 0;

    color: #263228;
    font-size: 1rem;
    font-weight: 700;
}

.cart-summary-total strong {
    color: var(--color-green, #1b5e20);
    font-size: 1.35rem;
}

.cart-summary-note {
    margin: 0 0 1.25rem;

    color: #7a847d;
    font-size: 0.76rem;
    line-height: 1.55;
}

.cart-checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.continue-shopping {
    display: block;

    margin-top: 1rem;

    color: var(--color-green, #1b5e20);

    text-align: center;

    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;

    transition: color 180ms ease;
}

.continue-shopping:hover {
    color: var(--color-orange, #f78e1e);
}


/* ---------------------------------------------------------
   Responsive cart
   --------------------------------------------------------- */

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

    .cart-summary {
        position: static;
    }
}


@media (max-width: 640px) {
    .cart-page {
        width: min(100% - 1.25rem, 1180px);
        padding-top: 2rem;
    }

    .cart-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 1rem;

        padding: 1rem;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-heading {
        gap: 0.5rem;
    }

    .cart-item-heading h2 {
        font-size: 1rem;
    }

    .cart-item-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item-subtotal {
        width: 100%;
        text-align: left;
    }
}


@media (max-width: 480px) {
    .cart-page {
        width: min(100% - 1rem, 1180px);
    }

    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-heading {
        display: block;
    }

    .cart-remove {
        margin-top: 0.7rem;
    }

    .cart-item-price {
        display: block;
    }

    .cart-item-price .cart-item-label {
        margin-bottom: 0.25rem;
    }

    .quantity-control {
        flex-wrap: wrap;
    }

    .cart-summary {
        padding: 1.25rem;
    }

    .cart-summary-total strong {
        font-size: 1.2rem;
    }
}

/* =========================================================
   PHASE 2 — CHECKOUT
   ========================================================= */


/* ---------------------------------------------------------
   Checkout page
   --------------------------------------------------------- */

.checkout-page {
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.checkout-page-header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.checkout-page-header h1 {
    margin: 0;

    color: var(--color-green, #1b5e20);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.checkout-page-header p {
    margin: 0.75rem 0 0;

    color: #68736b;
    font-size: 1rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Checkout layout
   --------------------------------------------------------- */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;

    align-items: start;
}


/* ---------------------------------------------------------
   Checkout form card
   --------------------------------------------------------- */

.checkout-form {
    padding: 1.75rem;

    background: #ffffff;

    border: 1px solid rgba(27, 94, 32, 0.08);
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(27, 94, 32, 0.06);
}


/* ---------------------------------------------------------
   Checkout section
   --------------------------------------------------------- */

.checkout-section {
    margin: 0;
}

.checkout-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;

    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;

    border-bottom: 1px solid #edf0ed;
}

.checkout-section-number {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    color: #ffffff;
    background: var(--color-green, #1b5e20);

    border-radius: 10px;

    font-size: 0.75rem;
    font-weight: 800;
}

.checkout-section-header h2 {
    margin: 0;

    color: #263228;
    font-size: 1.25rem;
}

.checkout-section-header p {
    margin: 0.25rem 0 0;

    color: #7a847d;
    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   Checkout form fields
   --------------------------------------------------------- */

.checkout-form .form-row {
    margin-bottom: 1.2rem;
}

.checkout-form .form-row > label {
    display: block;

    margin-bottom: 0.45rem;

    color: #354138;
    font-size: 0.85rem;
    font-weight: 700;
}

.checkout-form input:not([type="checkbox"]),
.checkout-form select,
.checkout-form textarea {
    display: block;

    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    padding: 0.7rem 0.85rem;

    color: #263228;
    background: #ffffff;

    border: 1px solid #dce2dd;
    border-radius: 10px;

    font: inherit;
    font-size: 0.92rem;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.checkout-form textarea {
    min-height: 100px;

    resize: vertical;
}

.checkout-form input:not([type="checkbox"]):hover,
.checkout-form select:hover,
.checkout-form textarea:hover {
    border-color: #bfc9c1;
}

.checkout-form input:not([type="checkbox"]):focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;

    border-color: var(--color-green, #1b5e20);

    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}


/* ---------------------------------------------------------
   Saved address
   --------------------------------------------------------- */

.saved-address-row select {
    background-color: #f9fbf9;
}

.checkout-hint {
    margin: 0.45rem 0 0;

    color: #7a847d;
    font-size: 0.76rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Address fields
   --------------------------------------------------------- */

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 0.9rem;
}


/* ---------------------------------------------------------
   Save-address checkbox
   --------------------------------------------------------- */

.checkout-checkbox-row {
    margin-top: 0.25rem;
}

.checkout-checkbox-row > label {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;

    cursor: pointer;

    color: #4d594f !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.checkout-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: var(--color-green, #1b5e20);

    cursor: pointer;
}


/* ---------------------------------------------------------
   Submit area
   --------------------------------------------------------- */

.checkout-submit-area {
    margin-top: 1.75rem;
    padding-top: 1.5rem;

    border-top: 1px solid #edf0ed;
}

.checkout-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 52px;

    font-size: 0.95rem;
    font-weight: 800;
}

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

.checkout-security-note {
    margin: 0.75rem 0 0;

    color: #7a847d;

    text-align: center;

    font-size: 0.72rem;
}


/* ---------------------------------------------------------
   Checkout summary
   --------------------------------------------------------- */

.checkout-summary {
    position: sticky;
    top: 100px;

    padding: 1.5rem;

    background: #ffffff;

    border: 1px solid rgba(27, 94, 32, 0.09);
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(27, 94, 32, 0.07);
}

.checkout-summary-header {
    margin-bottom: 1.25rem;
}

.checkout-summary-header h2 {
    margin: 0;

    color: #263228;
    font-size: 1.3rem;
}


/* ---------------------------------------------------------
   Checkout products
   --------------------------------------------------------- */

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;

    margin: 0;
    padding: 0 0 1.25rem;

    list-style: none;

    border-bottom: 1px solid #edf0ed;
}

.checkout-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 0.75rem;

    align-items: center;
}

.checkout-item-image {
    width: 52px;
    height: 52px;

    overflow: hidden;

    background: #f5f7f3;
    border-radius: 9px;
}

.checkout-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.checkout-item-placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    font-size: 1.1rem;
}

.checkout-item-details {
    min-width: 0;
}

.checkout-item-name {
    display: block;

    overflow: hidden;

    color: #354138;

    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item-quantity {
    display: block;

    margin-top: 0.2rem;

    color: #7a847d;
    font-size: 0.72rem;
}

.checkout-item-price {
    color: #263228;
    font-size: 0.82rem;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   Summary lines
   --------------------------------------------------------- */

.checkout-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    padding: 1.25rem 0;
}

.checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    color: #4e5951;

    font-size: 0.85rem;
}

.checkout-summary-row strong {
    color: #263228;
}

.checkout-summary-muted {
    color: #7a847d;
    font-size: 0.75rem;
}


/* ---------------------------------------------------------
   Checkout total
   --------------------------------------------------------- */

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.2rem 0;

    border-top: 1px solid #edf0ed;
}

.checkout-total span {
    color: #263228;
    font-size: 0.95rem;
    font-weight: 700;
}

.checkout-total strong {
    color: var(--color-green, #1b5e20);
    font-size: 1.3rem;
}

.checkout-summary-note {
    margin: 0;

    color: #7a847d;

    font-size: 0.73rem;
    line-height: 1.55;
}

.checkout-back-link {
    display: block;

    margin-top: 1.25rem;

    color: var(--color-green, #1b5e20);

    text-align: center;

    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;

    transition: color 180ms ease;
}

.checkout-back-link:hover {
    color: var(--color-orange, #f78e1e);
}


/* ---------------------------------------------------------
   Responsive checkout
   --------------------------------------------------------- */

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

    .checkout-summary {
        position: static;

        /*
         * On tablets the summary follows the form naturally.
         * This avoids a sticky sidebar competing for screen space.
         */
        order: 2;
    }

    .checkout-form {
        order: 1;
    }
}


@media (max-width: 640px) {
    .checkout-page {
        width: min(100% - 1.25rem, 1180px);
        padding-top: 2rem;
    }

    .checkout-form {
        padding: 1.25rem;
    }

    .checkout-summary {
        padding: 1.25rem;
    }

    .form-row-group {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-section-header {
        margin-bottom: 1.4rem;
    }
}


@media (max-width: 480px) {
    .checkout-page {
        width: min(100% - 1rem, 1180px);
    }

    .checkout-form,
    .checkout-summary {
        border-radius: 16px;
    }

    .checkout-page-header h1 {
        font-size: 2rem;
    }

    .checkout-section-number {
        width: 34px;
        height: 34px;
    }

    .checkout-section-header h2 {
        font-size: 1.1rem;
    }

    .checkout-item {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 0.6rem;
    }

    .checkout-item-image {
        width: 44px;
        height: 44px;
    }

    .checkout-item-name {
        font-size: 0.76rem;
    }

    .checkout-item-price {
        font-size: 0.76rem;
    }
}

/* =========================================================
   ORDER HISTORY
   ========================================================= */

.orders-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.orders-header h1 {
    margin-bottom: 0.5rem;
}

.orders-header p {
    max-width: 650px;
    color: var(--text-muted);
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: #fff;

    border: 1px solid rgba(0,0,0,0.06);

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.04);
}

.order-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 32px rgba(0,0,0,0.08);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 1.25rem 1.25rem 0;
}

.order-label {
    display: block;

    margin-bottom: 0.35rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    color: #888;
}

.order-number {
    margin: 0;

    font-size: 1.05rem;
}

.order-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;

    padding: 1.25rem;
}

.order-stat {
    display: flex;
    flex-direction: column;
}

.order-stat-label {
    margin-bottom: 0.4rem;

    color: #888;

    font-size: 0.78rem;
}

.order-card-footer {
    padding: 0 1.25rem 1.25rem;
}

.order-status-badge {
    display: inline-flex;

    align-items: center;

    padding: 0.45rem 0.75rem;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: capitalize;
}

/* Status colours */

.badge-pending {
    background: #fff7e6;
    color: #9a6700;
}

.badge-processing {
    background: #eef5ff;
    color: #1f5fbf;
}

.badge-shipped {
    background: #eef9f1;
    color: #18794e;
}

.badge-delivered {
    background: #eafaf0;
    color: #146c43;
}

.badge-cancelled {
    background: #fff0f0;
    color: #b42318;
}

/* Empty state */

.empty-state-card {
    text-align: center;

    padding: 4rem 2rem;

    background: #fff;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05);
}

.empty-state-icon {
    font-size: 3rem;

    margin-bottom: 1rem;
}

/* Mobile */

@media (max-width: 640px) {

    .order-card-body {
        grid-template-columns: 1fr;
    }

    .order-card-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================================
   PHASE 4 — ORDER DETAIL
   ========================================================= */

.order-detail-page {
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
    padding: 2.5rem 0 5rem;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.order-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;

    margin-bottom: 2rem;
}

.order-detail-header h1 {
    margin: 0.35rem 0 0;

    color: #263228;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.order-back-link {
    display: block;

    width: fit-content;

    margin-bottom: 1rem;

    color: #68736b;

    font-size: 0.78rem;
    font-weight: 600;

    text-decoration: none;

    transition: color 180ms ease;
}

.order-back-link:hover {
    color: var(--color-green, #1b5e20);
}

.order-placed-date {
    margin: 0.55rem 0 0;

    color: #7b857e;

    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.order-detail-header .order-status {
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   Main layout
   --------------------------------------------------------- */

.order-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(280px, 0.75fr);

    gap: 1.25rem;

    align-items: start;
}


/* ---------------------------------------------------------
   Panels
   --------------------------------------------------------- */

.order-panel {
    padding: 1.5rem;

    background: #ffffff;

    border: 1px solid rgba(27, 94, 32, 0.07);
    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(27, 94, 32, 0.05);
}

.order-panel + .order-panel {
    margin-top: 1rem;
}

.order-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.4rem;
}

.order-panel-header h2 {
    margin: 0.25rem 0 0;

    color: #263228;

    font-size: 1.05rem;
}

.order-item-count {
    padding: 0.4rem 0.7rem;

    color: #637067;
    background: #f4f7f4;

    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Order items table
   --------------------------------------------------------- */

.order-items-table-wrapper {
    overflow-x: auto;
}

.order-items-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 0.84rem;
}

.order-items-table th {
    padding: 0 0.75rem 0.75rem;

    color: #89928c;

    border-bottom: 1px solid #e7ebe8;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.order-items-table th:first-child,
.order-items-table td:first-child {
    padding-left: 0;
}

.order-items-table th:last-child,
.order-items-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.order-items-table td {
    padding: 1rem 0.75rem;

    color: #68736b;

    border-bottom: 1px solid #edf0ed;
}

.order-items-table tbody tr:last-child td {
    border-bottom: 0;
}

.order-items-table td strong {
    color: #303b33;
}


/* ---------------------------------------------------------
   Mobile item list
   --------------------------------------------------------- */

.order-items-mobile {
    display: none;
}

.order-mobile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: 1rem 0;

    border-bottom: 1px solid #edf0ed;
}

.order-mobile-item:first-child {
    padding-top: 0;
}

.order-mobile-item:last-child {
    border-bottom: 0;
}

.order-mobile-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-mobile-item span {
    color: #7a847d;
    font-size: 0.75rem;
}


/* ---------------------------------------------------------
   Totals
   --------------------------------------------------------- */

.order-totals {
    margin-top: 1.25rem;
    padding-top: 1rem;

    border-top: 1px solid #e5e9e6;
}

.order-totals > div {
    display: flex;
    justify-content: space-between;

    gap: 1rem;

    padding: 0.45rem 0;

    color: #6f7972;

    font-size: 0.84rem;
}

.order-total-final {
    margin-top: 0.6rem;
    padding-top: 1rem !important;

    color: #263228 !important;

    border-top: 1px solid #e5e9e6;

    font-size: 1rem !important;
    font-weight: 800;
}

.order-total-final strong {
    color: var(--color-green, #1b5e20);

    font-size: 1.15rem;
}


/* ---------------------------------------------------------
   Delivery address
   --------------------------------------------------------- */

.delivery-address {
    display: flex;
    flex-direction: column;

    gap: 0.35rem;

    color: #667169;

    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.55;
}

.delivery-address strong {
    margin-bottom: 0.25rem;

    color: #29352d;

    font-size: 0.95rem;
}

.order-info-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    background: #eef7ef;

    border-radius: 10px;

    font-size: 1rem;
}


/* ---------------------------------------------------------
   Delivery notes
   --------------------------------------------------------- */

.order-notes-panel {
    background: #fffdf9;
    border-color: rgba(247, 142, 30, 0.12);
}

.order-notes {
    margin: 0;

    padding: 0.9rem;

    color: #6e675d;
    background: #fff8ed;

    border-radius: 10px;

    font-size: 0.82rem;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   Continue shopping
   --------------------------------------------------------- */

.order-shop-button {
    margin-top: 1rem;

    text-align: center;
    text-decoration: none;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-detail-sidebar {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 1rem;
    }

    .order-detail-sidebar .order-panel + .order-panel {
        margin-top: 0;
    }

    .order-shop-button {
        grid-column: 1 / -1;

        margin-top: 0;
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .order-detail-page {
        width: min(100% - 1rem, 1180px);

        padding-top: 1.75rem;
    }

    .order-detail-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 1.25rem;
    }

    .order-detail-header h1 {
        font-size: 1.7rem;
    }

    .order-detail-header .order-status {
        align-self: flex-start;
    }

    .order-panel {
        padding: 1.15rem;

        border-radius: 15px;
    }

    /*
     * Tables become difficult to read on phones, so the desktop table
     * is replaced by a stacked item representation.
     */
    .order-items-table-wrapper {
        display: none;
    }

    .order-items-mobile {
        display: block;
    }

    .order-detail-sidebar {
        display: block;
    }

    .order-detail-sidebar .order-panel + .order-panel {
        margin-top: 1rem;
    }
}


/* ---------------------------------------------------------
   Very small phones
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .order-detail-page {
        width: calc(100% - 0.75rem);
    }

    .order-panel {
        padding: 1rem;
    }

    .order-detail-header h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-page {
    padding: 4rem 1rem 5rem;
}

.legal-container {
    width: min(100%, 960px);
    margin: 0 auto;
}


/* ==========================================================================
   Header
   ========================================================================== */

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 1.75rem;

    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 0.75rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;

    text-transform: uppercase;

    color: var(--primary-color, #2563eb);
}

.legal-header h1 {
    margin: 0 0 1rem;

    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;

    color: var(--heading-color, #111827);
}

.legal-intro {
    max-width: 760px;
    margin: 0;

    color: var(--text-muted, #4b5563);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-updated {
    margin: 1rem 0 0;

    color: var(--text-light, #6b7280);
    font-size: 0.85rem;
}


/* ==========================================================================
   Content
   ========================================================================== */

.legal-section {
    margin-bottom: 2.75rem;
}

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 0.9rem;

    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;

    color: var(--heading-color, #111827);
}

.legal-section p {
    max-width: 850px;
    margin: 0 0 1rem;

    color: var(--text-muted, #4b5563);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    max-width: 850px;

    margin: 0 0 1rem;
    padding-left: 1.5rem;

    color: var(--text-muted, #4b5563);
}

.legal-section li {
    margin-bottom: 0.6rem;

    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-section li:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Links
   ========================================================================== */

.legal-section a,
.legal-back-link a {
    color: var(--primary-color, #2563eb);
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.legal-section a:hover,
.legal-back-link a:hover {
    color: var(--primary-hover, #1d4ed8);
    text-decoration: underline;
}


/* ==========================================================================
   Bottom Navigation
   ========================================================================== */

.legal-back-link {
    margin-top: 3rem;
    padding-top: 1.5rem;

    border-top: 1px solid var(--border-color, #e5e7eb);
}

.legal-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {

    .legal-page {
        padding: 2.5rem 1rem 4rem;
    }

    .legal-container {
        width: 100%;
    }

    .legal-header {
        margin-bottom: 2.25rem;
        padding-bottom: 1.25rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-intro {
        font-size: 0.95rem;
    }

    .legal-section {
        margin-bottom: 2.25rem;
    }

    .legal-section h2 {
        font-size: 1.1rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .legal-back-link {
        margin-top: 2.5rem;
    }
}


/* ==========================================================================
   Cookie Consent
   ========================================================================== */

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;

    width: min(100% - 2rem, 760px);
    margin: 0 auto;
    padding: 1.25rem 1.4rem;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);

    animation: cookie-consent-enter 0.35s ease-out;
}

.cookie-consent[hidden] {
    display: none;
}


/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-text h2 {
    margin: 0 0 0.35rem;

    color: #222222;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.cookie-consent-text p {
    margin: 0 0 0.45rem;

    color: #666666;
    font-size: 0.85rem;
    line-height: 1.55;
}

.cookie-consent-text a {
    display: inline-block;

    color: #b45309;
    font-size: 0.8rem;
    font-weight: 600;

    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #92400e;
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    flex-shrink: 0;
}

.cookie-btn {
    min-width: 90px;
    padding: 0.65rem 1rem;

    border: 1px solid transparent;
    border-radius: 10px;

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

.cookie-btn:focus-visible {
    outline: 2px solid #b45309;
    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   Accept
   -------------------------------------------------------------------------- */

.cookie-btn-primary {
    background: #b45309;
    color: #ffffff;

    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.18);
}

.cookie-btn-primary:hover {
    background: #92400e;
    box-shadow: 0 5px 12px rgba(180, 83, 9, 0.22);
}


/* --------------------------------------------------------------------------
   Decline
   -------------------------------------------------------------------------- */

.cookie-btn-secondary {
    background: #ffffff;
    color: #555555;
    border-color: #e5e5e5;
}

.cookie-btn-secondary:hover {
    background: #fafafa;
    border-color: #d6d6d6;
}


/* --------------------------------------------------------------------------
   Entry animation
   -------------------------------------------------------------------------- */

@keyframes cookie-consent-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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


/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {

    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;

        width: auto;
        padding: 1.15rem;
        border-radius: 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-consent-text h2 {
        font-size: 0.95rem;
    }

    .cookie-consent-text p {
        font-size: 0.82rem;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

.cookie-consent-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-consent-links a {
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-consent-links a:hover {
    color: #92400e;
    text-decoration: underline;
}