:root {
    --bg: #fafcfa;
    --bg2: #f0f5f0;
    --surface: #ffffff;
    --text: #1a2e1a;
    --text2: #3d5a3d;
    --muted: #6b8a6b;
    --border: rgba(30, 80, 30, 0.1);
    --border2: rgba(30, 80, 30, 0.15);
    --green: #22a352;
    --green-dark: #1a8a42;
    --green-light: #e8f5ec;
    --green-glow: rgba(34, 163, 82, 0.15);
    --shadow: 0 4px 24px rgba(30, 80, 30, 0.08);
    --shadow-lg: 0 12px 48px rgba(30, 80, 30, 0.12);
    --font: "Outfit", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}
.brand .logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand .logo svg {
    width: 18px;
    height: 18px;
    fill: white;
}
.nav-links {
    display: flex;
    gap: 8px;
}
.nav-links a {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text2);
    transition: all 0.2s;
}
.nav-links a:hover {
    color: var(--green);
    background: var(--green-light);
}

/* Page */
.page-header {
    padding: 40px 0 20px;
    text-align: center;
}
.page-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}
.page-subtitle {
    color: var(--muted);
    font-size: 16px;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    padding: 40px 0 80px;
    align-items: start;
}
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

/* Product Section */
.product-section {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.product-image-wrap {
    background: var(--bg2);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}
.product-details {
    padding: 32px;
}
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--green-light);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.product-name {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
}
.product-desc {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.product-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.spec-item {
    padding: 16px;
    border-radius: 12px;
    background: var(--bg);
    text-align: center;
}
.spec-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--green);
}
.spec-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.product-features {
    list-style: none;
}
.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text2);
}
.product-features li:last-child {
    border-bottom: none;
}
.product-features svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 24px;
}
.cart-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 20px;
}
.cart-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-title svg {
    width: 22px;
    height: 22px;
    color: var(--green);
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: 16px;
    margin-bottom: 16px;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: white;
    object-fit: contain;
    padding: 8px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.cart-item-price {
    color: var(--green);
    font-weight: 800;
    font-size: 12px;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s;
}
.qty-btn:hover {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green);
}
.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
}
.cart-summary {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.summary-row .label {
    color: var(--muted);
}
.summary-row .value {
    font-weight: 700;
}
.summary-row.total .value {
    color: var(--green);
    font-size: 24px;
}

/* Checkout Form */
.checkout-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.checkout-header {
    padding: 24px 28px;
    background: var(--green-light);
    border-bottom: 1px solid var(--border);
}
.checkout-header h3 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-header svg {
    width: 22px;
    height: 22px;
    color: var(--green);
}
.checkout-body {
    padding: 28px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 500px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group.full {
    grid-column: 1 / -1;
}
.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.field {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border2);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: all 0.2s;
}
.field:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
    background: white;
}
.form-section {
    margin-bottom: 28px;
}
.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}
.checkbox-group input {
    margin-top: 4px;
}
.checkbox-group label {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}
.checkbox-group a {
    color: var(--green);
    text-decoration: underline;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    width: 100%;
}
.btn.primary {
    background: var(--green);
    color: white;
}
.btn.primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn svg {
    width: 20px;
    height: 20px;
}
.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.payment-icons svg {
    width: 40px;
    height: 28px;
    fill: var(--muted);
}
.payment-icons img {
    height: 18px;
    opacity: 0.6;
}

/* Footer */
footer {
    padding: 32px 0;
    background: white;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}
.footer-links a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--green);
}
.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: 100px;
    background: var(--text);
    color: white;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 200;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

header .nav-links{
    display: none;
}
header .nav-actions{
    display: none !important;
}
.back-link {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: var(--green);
}

.successBlock{
    display: block;
    padding: 40px 15px;
    text-align: center;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    margin: 40px 0 70px;
}

.product-slider-thumbs{
  margin-top: 10px;
}
.product-slider-thumbs .slick-slide{
  padding: 0 5px;
  opacity: .6;
  cursor: pointer;
}
.product-slider-thumbs .slick-current{
  opacity: 1;
}
.product-slider-thumbs img{
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}


@media(max-width: 768px){
    .shop-layout{
        display: block;
    }
    .product-specs{
        grid-template-columns: repeat(1, 1fr);
    }
    .sidebar{
        margin-top: 30px;
    }
    .cart-item{
        flex-wrap: wrap;
    }
    .quantity-control{
        justify-content: center;
        width: 100%;
    }
}