/* ============================================================
   CPHI Ventures Limited — Frontend Design System (v2)
   A clean, editorial corporate look: sharp edges, generous
   whitespace, black + warm brass accent. Not a wellness/organic
   template — deliberately different from that shape language.
   ============================================================ */

:root {
    --ink: #0a0a0a;
    --ink-soft: #374151;
    --gold: #b6903f;
    --gold-dark: #97742f;
    --cream: #faf9f6;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6560;
    --border: #e7e3dc;
    --radius: 4px;
    --radius-lg: 6px;
    --shadow: 0 1px 3px rgba(10, 10, 10, 0.06), 0 8px 24px rgba(10, 10, 10, 0.05);
    --shadow-lg: 0 4px 12px rgba(10, 10, 10, 0.08), 0 24px 48px rgba(10, 10, 10, 0.12);
    --max: 1280px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    letter-spacing: -0.01em;
}

a { color: inherit; }
img { max-width: 100%; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .2s ease;
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold); color: var(--ink); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: #fff; }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: #ffffff;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto;
    height: 78px;
}

.logo img { height: 40px; width: auto; object-fit: contain; display: block; }

nav.primary-nav { display: flex; gap: 36px; align-items: center; }

nav.primary-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .3px;
    padding: 4px 0;
    position: relative;
}

nav.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .2s ease;
}

nav.primary-nav a:hover::after,
nav.primary-nav a.active::after,
.mobile-nav a.active::after { width: 100%; }

nav.primary-nav a.active { color: var(--gold-dark); }

.search-container { position: relative; display: flex; align-items: center; gap: 22px; }

.icon-btn {
    font-size: 17px; cursor: pointer; color: var(--ink);
    background: none; border: none; display: flex; align-items: center;
    position: relative; text-decoration: none; padding: 0;
}

.icon-btn:hover { color: var(--gold-dark); }

.cart-count {
    position: absolute; top: -8px; right: -10px;
    background: var(--gold); color: var(--ink);
    font-size: 10px; font-weight: 700; padding: 2px 6px;
    border-radius: 50%; line-height: 1;
}

.search-box {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 10px;
    background: #fff; padding: 8px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    gap: 8px; align-items: center; z-index: 100;
}

.search-box input { padding: 8px 14px; border-radius: var(--radius); border: 1px solid #ddd; outline: none; }
.search-box button { padding: 8px 16px; border-radius: var(--radius); border: none; background: var(--ink); color: white; cursor: pointer; font-weight: 600; }

.menu-toggle { display: none; font-size: 24px; background: transparent; border: none; color: var(--ink); cursor: pointer; padding: 6px; }
.mobile-nav-wrapper { display: none; }

@media (max-width: 900px) {
    header { padding: 0 18px; }
    .header-container { height: 64px; }
    .logo img { height: 32px; }
    nav.primary-nav { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .mobile-nav-wrapper { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--border); }
    .mobile-nav { display: flex; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
    .mobile-nav.open { max-height: 500px; }
    .mobile-nav a { padding: 16px 20px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 600; }
    .mobile-nav a.active { background: var(--cream); }
}

/* ============================================================
   HOME — SPLIT HERO
   ============================================================ */
.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--ink);
    min-height: 560px;
}

.slides { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; z-index: 1; }

.hero-full {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    background-color: var(--ink);
    display: flex;
    align-items: center;
}

.hero-full-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.55) 100%); */
}

.hero-bg-fallback .hero-full {
    background-image: linear-gradient(155deg, #23201a, var(--ink) 65%);
}

.hero-full-text {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    color: #fff;
}

.hero-full-text h1 { font-size: 50px; line-height: 1.12; margin: 0 0 18px; font-weight: 700; max-width: 640px; }
.hero-full-text p { font-size: 18px; color: #443c29; margin: 0 0 32px; max-width: 480px; line-height: 1.7; }

.slider-dots {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}

.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); cursor: pointer; background: transparent; }
.dot.active { background: var(--gold); border-color: var(--gold); }

@media (max-width: 900px) {
    .hero-full { min-height: 440px; }
    .hero-full-text { padding: 0 24px; }
    .hero-full-text h1 { font-size: 32px; }
}

/* ============================================================
   SHARED SECTIONS
   ============================================================ */
.section-wrap { max-width: var(--max); margin: 0 auto; padding: 90px 40px; }
.section-wrap.tight { padding-top: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 700; color: var(--ink); margin: 0; }
.section-head .eyebrow { display: block; margin-bottom: 8px; }

.section-title { font-size: 30px; font-weight: 700; color: var(--ink); margin: 0 0 44px; text-align: center; }

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.home-product-card {
    background: var(--card);
    padding: 28px 22px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease;
}

.home-product-card:hover { background: var(--cream); }
.home-product-card img { width: 100%; height: 170px; object-fit: contain; margin-bottom: 16px; }
.home-product-title { font-weight: 600; color: var(--text); font-size: 15px; }

.view-more-wrap { margin-top: 46px; text-align: center; }

/* ============================================================
   WHY CHOOSE US — admin-manageable cards, each with its own
   accent color (--card-color, set inline per item).
   ============================================================ */
.why-choose-section { width: 100%; padding: 90px 0; }

.why-cards {
    max-width: var(--max);
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    --card-color: var(--gold);
    background: var(--card);
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--card-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.why-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.why-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
    .why-cards { grid-template-columns: repeat(2, 1fr); padding: 0 18px; }
}
@media (max-width: 560px) {
    .why-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; background: var(--ink); color: #cfcac2; padding: 80px 40px 30px; }
.footer-overlay { display: none; }

.footer-container {
    position: relative; z-index: 2; max-width: var(--max); margin: auto;
    display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap;
}

.footer-col { flex: 1; min-width: 240px; }
.footer-col img { width: 130px; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.8; color: #a8a29a; max-width: 320px; }

.footer-col h3 { font-size: 13px; margin-bottom: 20px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; font-size: 14px; color: #a8a29a; }
.footer-col ul li a { color: #a8a29a; text-decoration: none; transition: color .2s ease; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom { position: relative; z-index: 2; margin-top: 50px; text-align: left; max-width: var(--max); margin-left: auto; margin-right: auto; font-size: 13px; color: #6b675f; border-top: 1px solid #262421; padding-top: 24px; }

@media (max-width: 900px) {
    .footer-container { flex-direction: column; gap: 40px; }
    .footer-bottom { text-align: center; }
}

/* ============================================================
   ABOUT PAGE — gradient story layout
   ============================================================ */
.contact-wrapper { padding: 0; background: var(--cream); }

.about-story-wrapper {
    background:
        radial-gradient(circle at 12% 15%, rgba(182, 144, 63, 0.12), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(182, 144, 63, 0.10), transparent 48%),
        var(--cream);
    padding: 70px 0 90px;
}

.about-story-container { max-width: 900px; margin: 0 auto; padding: 0 40px; }

.about-story-heading { text-align: center; margin-bottom: 44px; }
.about-story-heading h1 { font-size: 40px; font-weight: 700; color: var(--gold-dark); margin: 0; }

.about-story-block { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.about-story-block + .about-story-block { margin-top: 60px; }

.about-story-text {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text);
    white-space: pre-line;
    margin: 0;
    max-width: 720px;
    text-align: left;
}

.about-story-media { width: 100%; }
.about-story-media img, .about-story-media video {
    width: 100%;
    max-height: 460px;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(10, 10, 10, 0.18);
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-story-heading h1 { font-size: 30px; }
    .about-story-media video, .about-story-media img { max-height: 340px; }
}

@media (max-width: 600px) {
    .about-story-wrapper { padding: 44px 0 60px; }
    .about-story-heading { margin-bottom: 30px; }
    .about-story-heading h1 { font-size: 24px; }
    .about-story-text { font-size: 16px; }
    .about-story-block { gap: 22px; }
    .about-story-block + .about-story-block { margin-top: 44px; }
    .about-story-media video, .about-story-media img { max-height: 260px; }
}

/* ============================================================
   CONTACT PAGE — split panel, no floating badges
   ============================================================ */
.section-container { max-width: var(--max); margin: 0 auto; padding: 80px 40px 90px; }
.contact-top { margin-bottom: 50px; }
.contact-top h1 { font-size: 38px; color: var(--ink); font-weight: 700; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.contact-info-panel { background: var(--ink); color: #fff; padding: 48px 40px; }
.contact-info-panel h2 { font-size: 20px; font-weight: 600; margin: 0 0 30px; color: #fff; }

.contact-cards { display: flex; flex-direction: column; gap: 26px; margin-bottom: 40px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon-circle {
    width: 38px; height: 38px; min-width: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    margin: 0;
}
.contact-card .icon-circle i { font-size: 15px; }
.contact-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #a8a29a; margin: 0 0 6px; font-weight: 600; }
.contact-card p { font-size: 15px; color: #eee; margin: 0; line-height: 1.6; }
.contact-card p a { color: var(--gold); text-decoration: none; }
.contact-card p a:hover { text-decoration: underline; }

.map-full { margin: 0; }
.map-full iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }

.contact-form { background: #fff; padding: 48px 44px; }
.contact-form h2 { color: var(--ink); text-align: left; margin: 0 0 8px; font-weight: 700; font-size: 22px; }
.contact-form > p.sub { color: var(--text-muted); margin: 0 0 28px; font-size: 14px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 18px; }
.form-full { grid-column: 1 / -1; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: 14px; outline: none; box-sizing: border-box;
    background: #fff; color: var(--text); font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { resize: none; }

.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row img { height: 45px; border-radius: var(--radius); border: 1.5px solid var(--border); }

.captcha-refresh {
    width: 42px; height: 42px; border-radius: var(--radius);
    background: var(--cream); border: 1.5px solid var(--border); color: var(--ink);
    font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.captcha-refresh:hover { background: var(--gold); border-color: var(--gold); }

.contact-form button[type="submit"] {
    width: 100%; background: var(--ink); color: #fff; border: none; padding: 15px;
    border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer;
    margin-top: 14px; transition: background .2s ease;
}
.contact-form button[type="submit"]:hover { background: var(--gold); color: var(--ink); }

.alert-success { background: #f0f5ea; color: #3f5427; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; border: 1px solid #d7e3c8; }
.alert-error { background: #fbeeee; color: #7f1d1d; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; border: 1px solid #f3d2d2; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form, .contact-info-panel { padding: 34px 24px; }
}

/* ============================================================
   PRODUCTS LISTING — sidebar filter layout
   ============================================================ */
.success-alert {
    max-width: var(--max); margin: 20px auto; padding: 14px 18px;
    background: #f0f5ea; color: #3f5427; border-radius: var(--radius); font-weight: 600;
    text-align: center; border: 1px solid #d7e3c8;
}

.products-page-head {
    max-width: var(--max); margin: 0 auto; padding: 56px 40px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.products-page-head h1 { font-size: 34px; font-weight: 700; color: var(--ink); margin: 0; }

.products-filter-controls { display: flex; gap: 12px; flex-wrap: wrap; }

.products-filter-controls select {
    padding: 12px 36px 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    min-width: 190px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.products-filter-controls select:hover { border-color: var(--ink); }
.products-filter-controls select:disabled { opacity: .5; cursor: not-allowed; }

#products-area { max-width: var(--max); margin: 0 auto; padding: 40px 40px 80px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    align-content: start;
}

.product-card {
    background: var(--card);
    padding: 24px 20px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.product-card:hover { background: var(--cream); }

.carousel { width: 100%; height: 190px; overflow: hidden; position: relative; margin-bottom: 14px; background: var(--cream); }
.carousel img { width: 100%; height: 100%; object-fit: contain; background-color: transparent; position: absolute; top: 0; left: 0; transition: opacity 1s ease-in-out; }
.carousel img.hidden { opacity: 0; }

.product-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.product-price { color: var(--gold-dark); font-weight: 700; margin: 0; font-size: 14px; }
.no-products { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text-muted); font-style: italic; background: var(--card); }

@media (max-width: 900px) {
    .products-page-head { padding: 40px 20px 0; }
    .products-filter-controls select { min-width: 150px; flex: 1; }
    #products-area { padding: 30px 20px 60px; }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-wrapper {
    max-width: var(--max);
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 40px;
}

.product-image { position: relative; }
.product-image img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--card); border: 1px solid var(--border); display: block; margin: 0 auto; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(10,10,10,.75); color: #fff; border: none; padding: 10px 14px; cursor: pointer;
    border-radius: 50%; font-size: 18px;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.product-details { padding-top: 10px; }
.product-title { font-size: 30px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.product-brand { color: var(--text-muted); margin-bottom: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.product-price { font-size: 26px; font-weight: 700; color: var(--gold-dark); margin-bottom: 22px; }
.product-description { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 30px; }

.quantity-wrapper { display: flex; align-items: center; gap: 0; margin-bottom: 28px; border: 1.5px solid var(--border); width: fit-content; }
.qty-btn { width: 40px; height: 44px; border: none; background: #fff; font-size: 18px; cursor: pointer; }
.qty-btn:hover { background: var(--cream); }
.qty-input { width: 56px; text-align: center; font-size: 15px; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); height: 44px; }

.btn-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-inquiry {
    padding: 15px 36px; background: var(--ink); color: #fff; border-radius: var(--radius);
    font-weight: 600; border: none; cursor: pointer; transition: all .2s ease;
}
.btn-inquiry:hover { background: var(--gold); color: var(--ink); }

.info-icon {
    width: 22px; height: 22px; background: var(--cream); color: var(--ink);
    border-radius: 50%; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
}

.tooltip {
    position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; padding: 10px 12px; border-radius: var(--radius);
    font-size: 12px; width: 250px; line-height: 1.5; opacity: 0; visibility: hidden; transition: .2s ease; z-index: 10;
}
.info-icon:hover .tooltip { opacity: 1; visibility: visible; }

@media (max-width: 800px) {
    .product-wrapper { grid-template-columns: 1fr; padding: 0 20px; }
}

/* ============================================================
   CART / INQUIRY PAGE
   ============================================================ */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 70px 40px; }
.container h2 { text-align: left; color: var(--ink); margin: 0 0 30px; font-size: 32px; font-weight: 700; }

.inquiry-card { background-color: var(--card); border: 1px solid var(--border); padding: 0; overflow: hidden; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
th { background-color: var(--cream); font-weight: 700; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
td form { display: inline-block; }

.delete-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: transparent; color: #b3261e; border: 1.5px solid #f0d3d1; border-radius: var(--radius);
    width: 36px; height: 36px; cursor: pointer; font-size: 14px; transition: .2s;
}
.delete-btn:hover { background-color: #b3261e; color: #fff; border-color: #b3261e; }

.qty-update-form { display: inline-flex !important; align-items: center; gap: 6px; }
.qty-update-input {
    width: 56px; padding: 7px 8px; margin: 0 !important; border: 1.5px solid var(--border) !important;
    border-radius: var(--radius) !important; font-size: 14px; text-align: center;
}
.qty-update-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--gold-dark); border: 1.5px solid var(--border); border-radius: var(--radius);
    width: 32px; height: 32px; cursor: pointer; font-size: 12px; transition: .2s;
}
.qty-update-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.cart-empty { padding: 40px 30px; margin: 0; color: var(--text-muted); font-style: italic; }

.cart-messages { padding: 24px 30px 0; }
.cart-form-panel { padding: 30px; border-top: 1px solid var(--border); }
.cart-form-title { margin: 0 0 18px; font-size: 18px; color: var(--ink); }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.inquiry-card input, .inquiry-card textarea {
    width: 100%; box-sizing: border-box; padding: 13px 14px; margin: 8px 0 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 15px; color: var(--text); resize: vertical; font-family: inherit;
}
.inquiry-card input:focus, .inquiry-card textarea:focus { outline: none; border-color: var(--gold); }

.error { color: #b3261e; font-size: 13px; margin-top: -5px; margin-bottom: 5px; }
.success { color: var(--gold-dark); font-weight: 600; margin-bottom: 20px; }

.submit-btn {
    background: var(--ink); color: #fff; border: none; padding: 14px 30px; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: inline-block; margin-bottom: 30px;
}
.submit-btn:hover { background: var(--gold); color: var(--ink); }

@media (max-width: 768px) {
    .container { padding: 40px 20px; }
    th, td { font-size: 13px; padding: 12px 10px; }
    .submit-btn { width: 100%; }
}

/* ============================================================
   GLOBAL RESPONSIVE BREAKPOINTS
   Desktop / large screens use the base styles above unchanged.
   These layer on top for laptop, tablet and mobile widths —
   spacing, type scale, grids and images only; no layout removed.
   ============================================================ */

/* ---------- Laptop (≤1200px): tighten the outer gutter ----------
   Only elements with no pre-existing narrower-breakpoint rule are
   listed here, so this can never fire after (and override) a more
   specific tablet/mobile rule defined earlier in this file for the
   same element — header, .why-cards, .footer-container,
   .about-story-container, .products-page-head, #products-area and
   .product-wrapper already have their own ≤900/≤800px rules above. */
@media (max-width: 1200px) {
    .section-wrap, .site-footer,
    .about-story-container, .section-container, .success-alert {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ---------- Tablet (≤900px) additions: type scale + spacing ---------- */
@media (max-width: 900px) {
    /* .hero-full is height:100% of .hero-carousel, so the carousel's
       own min-height must shrink too or the child's reduction is moot */
    .hero-carousel { min-height: 440px; }
    .section-wrap { padding-top: 60px; padding-bottom: 60px; }
    .why-choose-section { padding: 60px 0; }
    .section-title { font-size: 26px; margin-bottom: 32px; }
    .section-head h2 { font-size: 26px; }
    .site-footer { padding: 56px 32px 24px; }
    .products-page-head { padding-top: 32px; }
    .contact-top h1 { font-size: 30px; }
    .contact-top { margin-bottom: 32px; }
    .section-container { padding-top: 56px; padding-bottom: 56px; }
}

/* ---------- Large mobile / phablet (≤600px) ---------- */
@media (max-width: 600px) {
    .section-wrap, .site-footer, .footer-container,
    .about-story-container, .section-container, .products-page-head,
    #products-area, .product-wrapper, .container, .success-alert {
        padding-left: 18px;
        padding-right: 18px;
    }

    header { padding: 0 14px; }
    .why-cards { padding-left: 14px; padding-right: 14px; }
    .header-container { height: 58px; }
    .logo img { height: 28px; }
    .search-container { gap: 14px; }

    .hero-full-text h1 { font-size: 26px; }
    .hero-full-text p { font-size: 15px; margin-bottom: 22px; }
    .btn { padding: 12px 22px; font-size: 14px; }

    .section-title { font-size: 22px; }
    .section-head { flex-direction: column; align-items: flex-start; }

    .home-product-grid,
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .home-product-card img { height: 130px; }
    .carousel { height: 150px; }

    .why-cards { gap: 16px; }
    .why-card { padding: 24px 20px; }

    .contact-top h1 { font-size: 24px; }
    .contact-info-panel, .contact-form { padding: 24px 18px; }
    .form-grid { column-gap: 14px; row-gap: 14px; }

    .products-page-head { flex-direction: column; align-items: flex-start; }
    .products-page-head h1 { font-size: 26px; }
    .products-filter-controls { width: 100%; }
    .products-filter-controls select { flex: 1; min-width: 0; }

    .product-wrapper { gap: 30px; }
    .product-title { font-size: 24px; }
    .product-price { font-size: 22px; }

    .footer-col { min-width: 0; flex: 1 1 100%; }

    .container h2 { font-size: 24px; }
    th, td { padding: 10px 8px; }
}

/* ---------- Mobile (≤480px) ---------- */
@media (max-width: 480px) {
    .header-container { height: 54px; }
    .logo img { height: 26px; }
    .icon-btn { font-size: 16px; }
    .search-container { gap: 10px; }

    .hero-carousel, .hero-full { min-height: 380px; }
    .hero-full-text h1 { font-size: 22px; margin-bottom: 12px; }
    .hero-full-text p { font-size: 14px; margin-bottom: 18px; }
    .btn { padding: 11px 18px; font-size: 13px; width: 100%; justify-content: center; }

    .section-wrap { padding-top: 44px; padding-bottom: 44px; }
    .why-choose-section { padding: 44px 0; }
    .section-title { font-size: 20px; margin-bottom: 24px; }
    .section-head h2 { font-size: 22px; }
    .eyebrow { font-size: 11px; }

    .home-product-grid,
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
    .home-product-card, .product-card { padding: 16px 14px; }
    .home-product-card img { height: 110px; }
    .home-product-title, .product-title { font-size: 13px; }
    .carousel { height: 130px; }

    .why-cards { grid-template-columns: 1fr; }

    .contact-cards { gap: 18px; }
    .contact-card .icon-circle { width: 32px; height: 32px; }
    .contact-form h2 { font-size: 18px; }

    .products-filter-controls { flex-direction: column; }
    .products-filter-controls select { width: 100%; }

    .product-wrapper { padding: 0 18px; margin: 30px auto; }
    .product-details { padding-top: 0; }
    .product-title { font-size: 20px; }
    .product-price { font-size: 19px; }
    .btn-inquiry { width: 100%; }

    .footer-col img { width: 110px; }
    .footer-bottom { font-size: 12px; }

    .container { padding: 30px 16px; }
    .container h2 { font-size: 20px; }
    .qty-update-input { width: 46px; }
    .submit-btn, .delete-btn { font-size: 13px; }
}

/* ---------- Very small phones (≤360px) ---------- */
@media (max-width: 360px) {
    .home-product-grid, .product-grid { grid-template-columns: 1fr; }
    .hero-full-text h1 { font-size: 20px; }
    .products-page-head h1 { font-size: 22px; }
}
