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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f9;
    color: #1f2937;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
}


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

.shop-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.top-strip {
    background: #007A3D;
    color: #ffffff;
    font-size: 13px;
}

.top-strip-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-strip-links {
    display: flex;
    gap: 20px;
}

.top-strip-links a {
    color: #ffffff;
}

.main-header {
    background: #ffffff;
}

.main-header-inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: 230px minmax(300px, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.shop-logo {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1px;
}

.shop-logo span {
    color: #111827;
}

.shop-logo strong {
    margin-left: 7px;
    color: #009B4D;
}

.shop-search {
    display: flex;
    width: 100%;
    height: 46px;
    border: 2px solid #009B4D;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.shop-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
}

.shop-search button {
    border: 0;
    background: #009B4D;
    color: #ffffff;
    padding: 0 22px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.shop-search button:hover {
    background: #006B35;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-action {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    position: relative;
}

.header-action:hover {
    border-color: #009B4D;
}

.header-action-icon {
    font-size: 20px;
}

.header-action small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 2px;
}

.header-action strong {
    display: block;
    font-size: 13px;
    color: #111827;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #009B4D;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.shop-nav {
    background: #111827;
}

.shop-nav-inner {
    min-height: 46px;
    display: flex;
    align-items: stretch;
}

.shop-nav-inner a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.shop-nav-inner a:hover {
    background: #009B4D;
}


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

.site-main {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 0 0;
}


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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-bottom: 34px;
}

.hero-content {
    min-height: 360px;
    border-radius: 18px;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(
            120deg,
            #007A3D 0%,
            #009B4D 55%,
            #22C55E 100%
        );
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(215, 0, 24, 0.18);
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.hero-content p {
    max-width: 600px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

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

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 700;
}

.btn-primary {
    background: #111827;
    color: #ffffff;
}

.btn-primary:hover {
    background: #030712;
}

.btn-light {
    background: #ffffff;
    color: #007A3D;
}

.hero-side {
    display: grid;
    gap: 14px;
}

.hero-side-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.hero-side-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 12px;
    background: #ECFDF3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.hero-side-card strong {
    display: block;
    margin-bottom: 5px;
}

.hero-side-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}


/* =========================================
   SECTIONS
========================================= */

.home-section {
    margin: 36px 0;
}

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

.section-eyebrow {
    display: block;
    color: #009B4D;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    color: #111827;
    letter-spacing: -0.5px;
}

.section-link {
    color: #009B4D;
    font-weight: 700;
}


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

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    min-height: 125px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #009B4D;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-card strong {
    font-size: 16px;
    color: #111827;
}

.category-card span {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}


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

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

.product-card-v2 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.22s ease;
}

.product-card-v2:hover {
    transform: translateY(-4px);
    border-color: #d8dce3;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.product-image-wrap {
    height: 245px;
    padding: 18px;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card-v2:hover .product-image-wrap img {
    transform: scale(1.035);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 7px;
    background: #009B4D;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.no-product-image {
    font-size: 52px;
}

.product-card-body {
    padding: 0 17px 18px;
}

.product-category {
    min-height: 18px;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.product-title {
    min-height: 47px;
    margin: 7px 0 10px;
    font-size: 16px;
    line-height: 1.45;
}

.product-title a {
    color: #111827;
}

.product-title a:hover {
    color: #009B4D;
}

.product-price-v2 {
    min-height: 47px;
}

.product-price-v2 strong {
    display: block;
    color: #009B4D;
    font-size: 20px;
    margin-bottom: 3px;
}

.product-price-v2 del {
    color: #9ca3af;
    font-size: 13px;
}

.product-meta {
    margin: 10px 0 14px;
    font-size: 13px;
}

.in-stock {
    color: #15803d;
}

.out-stock {
    color: #dc2626;
}

.product-buy-button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #009B4D;
    color: #009B4D;
    font-weight: 700;
    transition: 0.2s ease;
}

.product-buy-button:hover {
    background: #009B4D;
    color: #ffffff;
}


/* =========================================
   TRUST
========================================= */

.trust-section {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
}

.trust-item {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid #e5e7eb;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item > span {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #ECFDF3;
    color: #009B4D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.trust-item strong {
    display: block;
    color: #111827;
    margin-bottom: 5px;
}

.trust-item small {
    color: #6b7280;
}


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

.empty-state {
    padding: 50px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    text-align: center;
}


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

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

.product-detail-image,
.product-detail-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.product-detail-image img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.product-detail-price {
    margin: 20px 0;
    font-size: 26px;
    font-weight: 800;
}

.old-price {
    color: #9ca3af;
    margin-right: 8px;
}

.sale-price {
    color: #009B4D;
}

.price {
    color: #009B4D;
}

.product-description {
    line-height: 1.7;
    color: #4b5563;
}

.add-cart-form {
    margin-top: 24px;
}

.add-cart-form input[type="number"] {
    display: block;
    width: 100px;
    padding: 10px;
    margin: 7px 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.add-cart-form button {
    border: 0;
    background: #009B4D;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================
   CART / CHECKOUT
========================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f9fafb;
    color: #374151;
}

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

.cart-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-quantity {
    width: 75px;
    padding: 8px;
}

.cart-summary,
.checkout-form-box,
.checkout-summary,
.empty-cart {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
}

.cart-summary {
    max-width: 420px;
    margin: 24px 0 0 auto;
}

.cart-total {
    margin-bottom: 18px;
    font-size: 26px;
    font-weight: 800;
    color: #009B4D;
}

.checkout-page {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.checkout-form-box input,
.checkout-form-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.checkout-form-box button,
.checkout-button {
    border: 0;
    background: #009B4D;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
    font-size: 21px;
}


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

.site-footer {
    margin-top: 50px;
    background: #111827;
    color: #d1d5db;
}

.footer-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-column h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-column p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-column a {
    color: #d1d5db;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    text-align: center;
    padding: 17px 20px;
    color: #9ca3af;
    font-size: 13px;
}


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

@media (max-width: 1000px) {
    .product-grid-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .main-header-inner {
        grid-template-columns: 200px minmax(250px, 1fr);
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-bottom: 14px;
    }
}

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

    .hero-content {
        min-height: 320px;
        padding: 38px;
    }

    .hero-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-side-card {
        display: block;
    }

    .hero-side-icon {
        margin-bottom: 10px;
    }

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

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

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

    .trust-section {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .container,
    .site-main,
    .footer-container {
        width: calc(100% - 24px);
    }

    .top-strip {
        display: none;
    }

    .main-header-inner {
        display: flex;
        flex-wrap: wrap;
        min-height: auto;
        padding: 13px 0;
        gap: 12px;
    }

    .shop-logo {
        font-size: 21px;
    }

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

    .shop-search button {
        padding: 0 14px;
    }

    .header-actions {
        margin-left: auto;
        padding: 0;
    }

    .header-action:first-child {
        display: none;
    }

    .cart-action {
        min-width: 48px;
        padding: 0 10px;
    }

    .cart-action small,
    .cart-action strong {
        display: none;
    }

    .shop-nav-inner {
        overflow-x: auto;
    }

    .shop-nav-inner a {
        flex: 0 0 auto;
        padding: 0 16px;
    }

    .site-main {
        padding-top: 18px;
    }

    .hero-content {
        min-height: 280px;
        padding: 28px 24px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 15px;
    }

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

    .category-grid,
    .product-grid-v2 {
        grid-template-columns: 1fr;
    }

    .product-image-wrap {
        height: 280px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .cart-header {
        display: block;
    }
}
