:root {
    --primary-color:   #f0a800;   /* Acorn gold */
    --primary-dark:    #c88900;
    --bg-dark:         #1b1b1b;
    --bg-mid:          #2a2a2a;
    --bg-surface:      #323232;
    --text-light:      #ffffff;
    --text-muted:      #aaaaaa;
    --text-dark:       #1b1b1b;
    --bg-page:         #f5f5f5;
    --offer-color:     #e05a2b;
}

/* -------------------------------------------------------
   Base
------------------------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--bg-dark);
}

/* -------------------------------------------------------
   Navbar
------------------------------------------------------- */
.navbar {
    background-color: var(--bg-dark) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.navbar-brand img {
    max-height: 46px;
}

.navbar-nav .nav-link {
    color: #cccccc !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1rem !important;
    transition: color .2s;
    letter-spacing: .02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-basket {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(240,168,0,.15);
    color: var(--primary-color) !important;
    border: 1px solid rgba(240,168,0,.5);
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    position: relative;
}

.btn-basket:hover {
    background: rgba(240,168,0,.3);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.basket-badge {
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.active-basket {
    background: rgba(240,168,0,.3) !important;
    border-color: var(--primary-color) !important;
}

/* -------------------------------------------------------
   Shop Header
------------------------------------------------------- */
.shop-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
    color: var(--text-light);
    padding: 3.5rem 0 3rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.shop-header h1 {
    color: var(--primary-color);
    font-size: 2.4rem;
    margin-bottom: .5rem;
    letter-spacing: .04em;
}

.shop-header p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* -------------------------------------------------------
   Category Filter
------------------------------------------------------- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.btn-category {
    background: #fff;
    border: 1px solid #d0d0d0;
    color: var(--text-dark);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}

.btn-category:hover {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--primary-color);
}

.btn-category.active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--primary-color);
}

/* -------------------------------------------------------
   Product Cards
------------------------------------------------------- */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.product-card.on-offer {
    border-color: var(--offer-color);
}

.offer-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--offer-color);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem 2.5rem;
    transform: rotate(45deg);
    transform-origin: top right;
    letter-spacing: .05em;
    z-index: 10;
    width: 130px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.product-img-wrap {
    height: 200px;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #333;
}

.category-badge {
    display: inline-block;
    background: rgba(240,168,0,.12);
    color: #a07000;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: 'Poppins', sans-serif;
}

.product-name {
    font-size: .95rem;
    font-family: 'Cinzel', serif;
    color: var(--bg-dark);
    margin-bottom: .3rem;
}

.product-desc {
    font-size: .85rem;
    color: #555;
    line-height: 1.55;
}

.price-block {
    border-top: 1px solid #eee;
    padding-top: .75rem;
}

.price-was {
    font-size: .9rem;
    color: #aaa;
    text-decoration: line-through;
    margin-right: .4rem;
}

.price-now {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
}

.product-card.on-offer .price-now {
    color: var(--offer-color);
}

.stock-notice {
    font-size: .8rem;
    color: #888;
    margin-bottom: 0;
}

.qty-input {
    width: 85px;
    text-align: center;
    padding: .375rem .5rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 6px;
    padding: .45rem 1rem;
    transition: background .2s, transform .15s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    letter-spacing: .01em;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: var(--text-dark);
    transform: scale(1.02);
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    padding: 1.75rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------
   Basket page
------------------------------------------------------- */
.empty-basket-icon {
    opacity: .25;
}

.basket-table-wrap {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.basket-table {
    margin: 0;
}

.basket-table thead th {
    background: var(--bg-dark);
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding: .85rem 1rem;
}

.basket-table tbody td {
    padding: .9rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.basket-table tbody tr:last-child td {
    border-bottom: none;
}

.basket-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.basket-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
}

.basket-product-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-dark);
    margin-bottom: .2rem;
}

.badge-offer {
    display: inline-block;
    background: #fde8e0;
    color: var(--offer-color);
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 50px;
    border: 1px solid #f5c6b0;
}

.qty-input-sm {
    width: 72px;
    text-align: center;
    padding: .3rem .4rem;
    font-size: .9rem;
}

.btn-update {
    background: var(--bg-dark);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    padding: .3rem .5rem;
    line-height: 1;
    transition: background .2s;
}

.btn-update:hover {
    background: var(--bg-surface);
    color: var(--primary-color);
}

.btn-remove {
    background: transparent;
    border: 1px solid #ddd;
    color: #aaa;
    border-radius: 5px;
    padding: .3rem .45rem;
    line-height: 1;
    transition: all .2s;
}

.btn-remove:hover {
    background: var(--offer-color);
    border-color: var(--offer-color);
    color: #fff;
}

.btn-outline-continue {
    border: 1px solid var(--bg-dark);
    color: var(--bg-dark);
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    padding: .45rem 1.1rem;
    text-decoration: none;
    transition: all .2s;
}

.btn-outline-continue:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

/* Order summary panel */
.order-summary {
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.summary-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(240,168,0,.3);
    font-family: 'Cinzel', serif;
}

.summary-lines {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .75rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .875rem;
    gap: .5rem;
}

.summary-line-name {
    color: #ccc;
    flex: 1;
}

.summary-line-price {
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}

.summary-divider {
    border-top: 1px solid rgba(240,168,0,.3);
    margin: .75rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: .75rem;
    font-family: 'Poppins', sans-serif;
}

.summary-note {
    font-size: .78rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0;
}

.btn-checkout {
    background: var(--primary-color);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    color: var(--text-dark);
    transform: scale(1.02);
}

/* -------------------------------------------------------
   Checkout page
------------------------------------------------------- */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s;
    font-family: 'Poppins', sans-serif;
}

.step.active .step-circle {
    background: var(--primary-color);
    color: var(--text-dark);
}

.step.done .step-circle {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.step-label {
    font-size: .75rem;
    font-weight: 600;
    color: #aaa;
    font-family: 'Poppins', sans-serif;
}

.step.active .step-label,
.step.done .step-label {
    color: var(--bg-dark);
}

.step-line {
    height: 2px;
    width: 80px;
    background: #ddd;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.step-line.done {
    background: var(--bg-dark);
}

.checkout-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.checkout-section-title {
    font-size: .95rem;
    color: var(--bg-dark);
    margin-bottom: 1.1rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--primary-color);
    font-family: 'Cinzel', serif;
}

.form-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: .3rem;
}

.req {
    color: var(--offer-color);
}

/* Confirmation page */
.confirmed-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.confirmed-icon {
    color: var(--primary-color);
}

/* -------------------------------------------------------
   Responsive tweaks
------------------------------------------------------- */
@media (max-width: 576px) {
    .shop-header h1 { font-size: 1.7rem; }

    .basket-table .col-price,
    .basket-table .col-total { display: none; }

    .basket-thumb { width: 48px; height: 48px; }
}
