@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #152a2a;
    --muted: #697775;
    --line: #dce5df;
    --bg: #f7f9f6;
    --mint: #e0f3e7;
    --green: #176B91;
    --white: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font: 15px 'DM Sans', sans-serif
}

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer;
    border: 1px solid var(--line);
    background: white;
    border-radius: 9px;
    padding: 11px 16px;
    color: var(--ink)
}

button:hover {
    border-color: var(--green)
}

button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
    font-weight: 700
}

.primary:hover {
    background: #10513e;
    color: white
}

header {
    display: flex;
    align-items: center;
    gap: 35px;
    justify-content: space-between;
    padding: 22px max(5vw, 20px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5
}

.logo {
    text-decoration: none;
    color: var(--winter-primary);
    font: 800 21px Manrope;
    letter-spacing: -1px;
    white-space: nowrap
}

.logo small {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--winter-dark);
    display: block;
    margin-left: 24px
}

nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap
}

nav button {
    border: 0;
    background: transparent;
    font-size: 13px
}

.tab.active {
    color: var(--green);
    font-weight: 700;
    background: #eaf5ef
}

.account {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap
}

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

main {
    max-width: 1260px;
    margin: auto;
    padding: 0 24px
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 76px 0 66px
}

.eyebrow {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--green);
    margin-bottom: 15px
}

h1,
h2,
h3 {
    font-family: Manrope;
    margin: 0
}

h1 {
    font-size: clamp(35px, 4.5vw, 63px);
    line-height: 1.12;
    letter-spacing: -3px
}

h1 em {
    font-style: normal;
    color: var(--green)
}

.hero p {
    max-width: 530px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 16px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px
}

.hero-art {
    min-height: 365px;
    border-radius: 25px;
    background: radial-gradient(circle at 40% 40%, #a6d7b7, #458d70 48%, #1a5848 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.art-orb {
    font-size: 150px;
    color: #e6f8e5;
    text-shadow: 0 20px 45px #0b4d3460;
    transform: rotate(-12deg)
}

.art-label {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px
}

.panel {
    padding: 25px 0 75px;
    min-height: 340px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 28px
}

.section-heading h2 {
    font-size: 32px;
    letter-spacing: -1px
}

.muted {
    color: var(--muted)
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.product {
    border: 1px solid var(--line);
    background: white;
    border-radius: 17px;
    overflow: hidden
}

.product-visual {
    height: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #eff8f1, #d4e8dd);
    font-size: 73px
}

.product-body {
    padding: 21px
}

.product-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start
}

.product h3 {
    font-size: 17px
}

.product p {
    color: var(--muted);
    line-height: 1.6;
    min-height: 42px
}

.price {
    font-weight: 800;
    font-size: 19px;
    white-space: nowrap
}

.chip {
    font-size: 11px;
    background: #e5f3ea;
    color: var(--green);
    padding: 6px 10px;
    border-radius: 100px;
    font-weight: 700
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px
}

.product-bottom small {
    color: var(--muted)
}

.form-grid {
    max-width: 780px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 28px;
    margin-bottom: 30px
}

.form-grid label {
    font-weight: 700;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.form-grid input,
.form-grid textarea {
    border: 1px solid #cad8d0;
    border-radius: 9px;
    padding: 12px;
    background: white;
    width: 100%;
    outline-color: var(--green)
}

.wide {
    grid-column: 1/-1
}

.action-row {
    display: flex;
    gap: 10px
}

.item-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center
}

.item-row p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 13px
}

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

.cart {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(420px, 100vw);
    background: white;
    box-shadow: -10px 0 45px #0c302c25;
    z-index: 20;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    transition: transform .25s
}

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

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px
}

.cart-head button {
    border: 0
}

.cart #cartItems {
    flex: 1;
    overflow: auto;
    padding-top: 18px
}

.cart-foot {
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.cart-foot small {
    display: block;
    text-align: center;
    color: var(--muted);
    margin-top: 12px
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px
}

.full {
    width: 100%
}

.cart-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--ink);
    color: white;
    border: 0;
    border-radius: 100px;
    padding: 15px 24px;
    box-shadow: 0 10px 30px #142e2e30;
    z-index: 10
}

.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 30
}

.toast.show {
    opacity: 1
}

footer {
    padding: 35px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px
}

@media(max-width:950px) {
    header {
        flex-wrap: wrap;
        gap: 10px
    }

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

    .hero-art {
        min-height: 230px
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    main {
        padding: 0 15px
    }

    .hero {
        padding-top: 40px
    }

    .product-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .section-heading h2 {
        font-size: 26px
    }

    h1 {
        letter-spacing: -1.5px
    }

    .account {
        width: 100%;
        justify-content: space-between
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: space-between
    }

    .wide {
        grid-column: auto
    }
}

.quantity-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px
}

.quantity-input {
    width: 65px;
    padding: 8px;
    border: 1px solid #cad7d1;
    border-radius: 8px
}

.product-bottom {
    flex-wrap: wrap;
    gap: 10px
}

.order-group {
    padding: 18px;
    margin: 16px 0;
    border: 1px solid #d9e3dd;
    border-radius: 14px;
    background: #fff
}

.order-group h4 {
    margin: 0 0 5px
}

.order-detail {
    margin-top: 12px;
    border: 1px solid #d9e3dd;
    border-radius: 10px
}

.order-detail summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    list-style: none
}

.order-detail summary::-webkit-details-marker {
    display: none
}

.order-detail-body {
    padding: 0 15px 15px;
    overflow-x: auto
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

.order-table th,
.order-table td {
    padding: 9px;
    border-bottom: 1px solid #e2e8e4
}

/* Shop and order filters */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 24px;
}

.filter-bar label {
    font-weight: 600;
    font-size: 14px;
}

.filter-bar select,
.filter-bar input,
.status-control select {
    border: 1px solid #cad7d1;
    border-radius: 9px;
    padding: 10px 12px;
    background: white;
    color: #18332f;
}

.filter-bar input {
    min-width: 280px;
    flex: 1;
    max-width: 470px;
}

.status-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 12px 8px 0;
}

/* Respect hidden even when layout classes set display:flex/grid */
[hidden] {
    display: none !important;
}


/* Category dropdown styling */
#productForm select {
    width: 100%;
    height: 44px;
    padding: 10px 40px 10px 14px;

    font-family: inherit;
    font-size: 14px;
    color: #142b29;

    background-color: #ffffff;
    border: 1px solid #c8d9d0;
    border-radius: 10px;

    /* Remove the browser's default dropdown arrow */
    appearance: none;
    -webkit-appearance: none;

    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23166b50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;

    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Hover effect */
#productForm select:hover {
    border-color: #166b50;
}

/* Focus effect */
#productForm select:focus {
    outline: none;
    border-color: #166b50;
    box-shadow: 0 0 0 3px rgba(22, 107, 80, 0.12);
}

/* Placeholder option */
#productForm select:invalid {
    color: #788782;
}

/* Dropdown options */
#productForm select option {
    color: #142b29;
    background-color: #ffffff;
}


/* ==========================================
   WYNTER MARKET - GLACIER BLUE THEME
   ========================================== */

:root {
    --winter-primary: #176B91;
    --winter-hover: #125675;
    --winter-accent: #3498C2;
    --winter-ice: #B8E1F2;
    --winter-light: #E8F5FB;
    --winter-background: #F7FAFC;
    --winter-dark: #173A4D;
    --winter-border: #D3E5ED;
    --winter-muted: #617D8D;
}

/* Main background and text */

body {
    background-color: var(--winter-background);
    color: var(--winter-dark);
}

h1,
h2,
h3,
h4 {
    color: var(--winter-dark);
}

.muted,
small {
    color: var(--winter-muted);
}

/* Header and navigation */

header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--winter-border);
}

.tab.active {
    background-color: var(--winter-light);
    color: var(--winter-primary);
}

.tab:hover {
    color: var(--winter-primary);
}

/* Logo and branding */

.brand,
.brand strong,
.brand small {
    color: var(--winter-dark);
}

.brand-icon {
    color: var(--winter-accent);
}

/* Main buttons */

.primary,
button.primary {
    background-color: var(--winter-primary);
    border-color: var(--winter-primary);
    color: #FFFFFF;
}

.primary:hover,
button.primary:hover {
    background-color: var(--winter-hover);
    border-color: var(--winter-hover);
}

/* Secondary buttons */

button:not(.primary) {
    border-color: var(--winter-border);
}

button:not(.primary):hover {
    border-color: var(--winter-accent);
}

/* Hero section */

.hero {
    background-color: var(--winter-background);
}

.hero h1,
.hero h2 {
    color: var(--winter-dark);
}

.hero h1 span,
.hero h2 span {
    color: var(--winter-primary);
}

/* Hero promotional card */

.hero-art,
.hero-visual {
    background: linear-gradient(135deg,
            #8DCEE8 0%,
            #4EA9D0 45%,
            #176B91 100%);
}

/* Hero decorative icon */

.hero-art .spark,
.hero-visual .spark {
    color: #E8F8FF;
}

/* Section labels */

.eyebrow,
.kicker,
.section-label {
    color: var(--winter-primary);
}

/* Product cards */

.product {
    background-color: #FFFFFF;
    border-color: var(--winter-border);
}

.product-visual {
    background: linear-gradient(135deg,
            #E8F5FB 0%,
            #C9E8F5 100%);
    color: var(--winter-dark);
}

.product h3 {
    color: var(--winter-dark);
}

.product p {
    color: var(--winter-muted);
}

.price {
    color: var(--winter-primary);
}

/* Product category labels */

.chip {
    background-color: var(--winter-light);
    color: var(--winter-primary);
}

/* Shopping bag */

#openCart {
    background-color: var(--winter-dark);
    color: #FFFFFF;
}

#openCart:hover {
    background-color: var(--winter-primary);
}

/* Forms and inputs */

input,
textarea,
select {
    background-color: #FFFFFF;
    color: var(--winter-dark);
    border-color: var(--winter-border);
    border-radius: 10px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--winter-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 194, 0.15);
}

/* Inventory category dropdown */

#productForm select {
    width: 100%;
    min-height: 44px;
    padding: 10px 40px 10px 14px;

    font-family: inherit;
    font-size: 14px;

    appearance: none;
    -webkit-appearance: none;

    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23176B91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;

    cursor: pointer;
}

#productForm select:hover {
    border-color: var(--winter-accent);
}

/* Inventory and order cards */

.item-row,
.order-group,
.order-detail {
    background-color: #FFFFFF;
    border-color: var(--winter-border);
}

.order-detail summary:hover {
    background-color: var(--winter-light);
}

/* Order status and permission labels */

.badge,
.status-badge {
    background-color: var(--winter-light);
    color: var(--winter-primary);
}

/* Tables */

.order-table th {
    color: var(--winter-dark);
    background-color: var(--winter-light);
}

.order-table td {
    border-color: var(--winter-border);
}

/* Toast notifications */

#toast {
    background-color: var(--winter-dark);
    color: #FFFFFF;
}

/* Final Wynter Market color fixes - layout unchanged */
h1 em {
    color: var(--winter-primary);
}

#productForm select:focus {
    border-color: var(--winter-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 194, 0.15);
}