
/* =========================================
   PURE ASSAM — PREMIUM RESPONSIVE DESIGN
   File: assets/style.css
   CSS design only — backend remains unchanged
========================================= */

:root {
    --green: #174b35;
    --green-dark: #103524;
    --green-light: #eaf1e9;
    --gold: #c9a24b;
    --cream: #faf8f2;
    --white: #ffffff;
    --text: #242820;
    --muted: #70766d;
    --border: #e8e4d9;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(24, 55, 39, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

button,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    color: var(--green-dark);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

p {
    overflow-wrap: break-word;
}

.wrap,
main.wrap {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

/* HEADER */

header {
    position: relative;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-width: 0;
    padding-top: 15px;
    padding-bottom: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--green-dark);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.brand img {
    width: auto;
    max-width: 170px;
    max-height: 58px;
    object-fit: contain;
}

header nav,
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

nav a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--gold);
}

/* BUTTONS */

.btn,
button.btn,
a.btn,
input.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
input.btn:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--green);
}

/* HOME HERO */

.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f0df 0%, #e8efe4 100%);
    border-bottom: 1px solid var(--border);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 42px;
    padding-top: 58px;
    padding-bottom: 58px;
}

.home-hero-inner > * {
    min-width: 0;
}

.home-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.home-hero p {
    max-width: 560px;
    color: #555e51;
    font-size: 17px;
    line-height: 1.8;
}

.home-hero-image {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #e7e5d9;
    box-shadow: var(--shadow);
}

.home-hero-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: center;
}

/* HOME SECTIONS */

.home-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.home-section:nth-of-type(even) {
    background: var(--white);
}

.home-title {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
}

.home-subtitle {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--muted);
    text-align: center;
}

/* CATEGORY CARDS */

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.home-category {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(24, 55, 39, 0.04);
    color: var(--green-dark);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.home-category img {
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.home-category h3,
.home-category h4 {
    margin: 0;
    padding: 15px 10px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

/* FEATURED PRODUCTS */

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.home-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 4px 18px rgba(24, 55, 39, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.home-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f3f0e7;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.home-product:hover .home-product-image img {
    transform: scale(1.035);
}

.home-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 16px;
}

.home-product h3,
.home-product h4 {
    width: 100%;
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-product p {
    width: 100%;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.home-price,
.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 5px 0 12px;
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 800;
}

.home-discount {
    color: #8b8b80;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
}

.home-product .btn {
    width: 100%;
    margin-top: auto;
}

/* WHY PURE ASSAM */

.home-why {
    padding: 54px 0;
    background: #edf2e9;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    min-width: 0;
}

.home-why-grid > div,
.home-why-grid > article {
    min-width: 0;
    padding: 24px;
    border: 1px solid #dfe7da;
    border-radius: var(--radius);
    background: var(--white);
}

.home-why h3,
.home-why h4 {
    margin-top: 0;
    font-size: 18px;
}

.home-why p {
    margin-bottom: 0;
    color: var(--muted);
}

/* PAYMENT & DELIVERY */

.home-payment {
    padding: 54px 0;
    background: var(--white);
}

.home-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    min-width: 0;
}

.home-payment-grid > div,
.home-payment-grid > article {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream);
}

.home-payment h3,
.home-payment h4 {
    margin-top: 0;
    font-size: 17px;
}

.home-payment p {
    margin-bottom: 0;
    color: var(--muted);
}

/* CONTACT */

.home-contact {
    padding: 48px 0;
    background: #f0eee4;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    min-width: 0;
}

.home-contact-grid > * {
    min-width: 0;
}

.home-contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-wrap: anywhere;
}

.home-contact-details p {
    margin: 0;
}

/* FOOTER */

footer {
    padding: 35px 0;
    background: var(--green-dark);
    color: #f7f4e9;
}

footer a {
    color: #f7f4e9;
}

footer a:hover {
    color: #e5c675;
}

.home-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    min-width: 0;
}

.home-footer-grid > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-footer-grid h3,
.home-footer-grid h4 {
    color: var(--white);
}

/* GENERAL CARDS AND FORMS */

.card,
.info,
.form {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 4px 18px rgba(24, 55, 39, 0.05);
}

.card,
.info {
    padding: 22px;
}

.form {
    padding: 24px;
}

.form label {
    display: block;
    margin: 0 0 6px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
}

.form input,
.form select,
.form textarea,
input,
select,
textarea {
    min-width: 0;
}

.form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.form select,
.form textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #d8d8ce;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 75, 53, 0.1);
}

textarea {
    resize: vertical;
}

.form button,
.form input[type="submit"],
.form .btn {
    max-width: 100%;
}

/* PRODUCT DETAIL PAGE */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    min-width: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.product > * {
    min-width: 0;
}

.product img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--white);
}

.product h1 {
    margin-top: 0;
    font-size: clamp(25px, 3vw, 36px);
}

/* CHECKOUT / CART SAFETY */

main.wrap:has(> .form) {
    padding-top: 25px;
    padding-bottom: 35px;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    overflow-wrap: anywhere;
}

main,
section,
article,
form,
.card,
.info {
    min-width: 0;
}

pre,
code {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* TABLET */

@media (max-width: 1000px) {
    .wrap,
    main.wrap {
        width: calc(100% - 32px);
    }

    .home-hero-inner {
        gap: 25px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .home-hero-image img {
        height: 320px;
    }

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

    .home-why-grid,
    .home-payment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    header nav,
    nav {
        gap: 14px;
    }
}

/* MOBILE: SAMSUNG / IPHONE / REALME */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .wrap,
    main.wrap {
        width: calc(100% - 28px);
    }

    header .wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand {
        justify-content: center;
        font-size: 23px;
    }

    header nav,
    nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        padding: 5px 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    nav a {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .home-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        letter-spacing: -0.7px;
    }

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

    .home-hero-image img {
        height: auto;
        max-height: 360px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .home-section,
    .home-why,
    .home-payment {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .home-title {
        font-size: 26px;
    }

    .home-subtitle {
        margin-bottom: 22px;
    }

    .home-category-grid,
    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
        align-items: stretch;
    }

    .home-category img {
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .home-category h3,
    .home-category h4 {
        padding: 11px 7px;
        font-size: 14px;
    }

    .home-product-body {
        padding: 11px;
    }

    .home-product h3,
    .home-product h4 {
        font-size: 14px;
    }

    .home-product p {
        font-size: 12px;
    }

    .home-price,
    .price {
        gap: 5px;
        font-size: 17px;
    }

    .home-product .btn,
    .home-product a.btn {
        min-height: 40px;
        padding: 9px 7px;
        font-size: 12px;
    }

    .home-why-grid,
    .home-payment-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-why-grid > div,
    .home-why-grid > article,
    .home-payment-grid > div,
    .home-payment-grid > article {
        padding: 19px;
    }

    .home-contact-grid,
    .home-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-contact {
        padding: 35px 0;
    }

    .product {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-top: 20px;
    }

    .product img {
        max-height: 420px;
    }

    .form,
    .card,
    .info {
        padding: 16px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 10px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .wrap,
    main.wrap {
        width: calc(100% - 22px);
    }

    .home-category-grid,
    .home-product-grid {
        gap: 9px;
    }

    .home-product-body {
        padding: 9px;
    }

    .home-product h3,
    .home-product h4 {
        font-size: 13px;
    }

    .home-product .btn,
    .home-product a.btn {
        font-size: 11px;
        padding: 8px 5px;
    }

    .home-title {
        font-size: 23px;
    }

    .home-hero h1 {
        font-size: 29px;
    }

    .form,
    .card,
    .info {
        padding: 13px;
    }
}


/* =========================================
   PURE ASSAM — PREMIUM FINISH
   Added styling only; no PHP/database changes
========================================= */

:root {
    --green: #153d2b;
    --green-dark: #0c2b1d;
    --green-light: #e9f0e7;
    --gold: #c9a45c;
    --cream: #fbf8f0;
    --text: #252a23;
    --muted: #6d756c;
    --border: #e6e0d2;
    --radius: 18px;
    --shadow: 0 12px 32px rgba(15, 48, 31, 0.09);
}

/* Cleaner text rendering and page background */
body {
    background: var(--cream);
    letter-spacing: 0.05px;
}

::selection {
    background: rgba(201, 164, 92, 0.28);
    color: var(--green-dark);
}

/* Refined navigation */
header {
    box-shadow: 0 3px 18px rgba(15, 48, 31, 0.035);
}

.brand {
    letter-spacing: -0.8px;
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--gold);
    transition: right 0.22s ease;
}

nav a:hover::after {
    right: 0;
}

/* Premium button finish */
.btn,
button.btn,
a.btn,
input.btn {
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(16, 53, 36, 0.10);
}

.btn-secondary {
    border-color: var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: #fffdf8;
    color: var(--green-dark);
}

/* Hero section */
.home-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(201, 164, 92, 0.14), transparent 30%),
        linear-gradient(135deg, #fbf7eb 0%, #e8efe5 100%);
}

.home-hero h1 {
    letter-spacing: -1.7px;
    line-height: 1.12;
}

.home-hero p {
    max-width: 540px;
}

.home-hero-image {
    border: 1px solid rgba(201, 164, 92, 0.28);
    box-shadow: 0 18px 45px rgba(15, 48, 31, 0.13);
}

/* Section rhythm and headings */
.home-section {
    position: relative;
}

.home-title {
    letter-spacing: -0.8px;
}

.home-subtitle {
    line-height: 1.8;
}

/* Product/category cards */
.home-category,
.home-product {
    border-color: #e7e0d1;
    box-shadow: 0 7px 22px rgba(15, 48, 31, 0.055);
}

.home-category:hover,
.home-product:hover {
    border-color: rgba(201, 164, 92, 0.72);
    box-shadow: 0 16px 34px rgba(15, 48, 31, 0.12);
}

.home-category img {
    background: #f4f0e5;
}

.home-product-image {
    background: linear-gradient(145deg, #faf7ef, #f0ecdf);
}

.home-product-body {
    padding: 18px;
}

.home-product h3,
.home-product h4,
.home-category h3,
.home-category h4 {
    letter-spacing: -0.2px;
}

.home-price,
.price {
    color: var(--green);
}

/* Trust blocks */
.home-why {
    background: linear-gradient(135deg, #edf2e9, #f7f5ec);
}

.home-why-grid > div,
.home-why-grid > article,
.home-payment-grid > div,
.home-payment-grid > article {
    box-shadow: 0 5px 18px rgba(15, 48, 31, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-why-grid > div:hover,
.home-why-grid > article:hover,
.home-payment-grid > div:hover,
.home-payment-grid > article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Contact and footer polish */
.home-contact {
    background: linear-gradient(135deg, #f3f0e6, #e9eee4);
}

footer {
    background: linear-gradient(135deg, #103524, #0a2418);
}

.home-footer-grid {
    line-height: 1.8;
}

/* Forms, cart and checkout */
.form,
.card,
.info {
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(15, 48, 31, 0.055);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

/* Accessible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 164, 92, 0.75);
    outline-offset: 3px;
}

/* Smooth motion without forcing it on reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Mobile refinement */
@media (max-width: 768px) {
    .home-hero h1 {
        letter-spacing: -0.9px;
        line-height: 1.15;
    }

    .home-product-body {
        padding: 12px;
    }

    .home-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .home-hero-image {
        border-radius: 16px;
    }
}
