/* index_style.css - Standardized breakpoints */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { width: 100%; overflow: visible; }

.js-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--delay, 0s);
}
.js-reveal.visible { opacity: 1; transform: none; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

#skeleton-loader { width: 100%; }

.sk-hero {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.sk-left {
    flex: 1;
    padding: 12% 5%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sk-img { flex: 1.2; }

.skel-block { animation-direction: reverse; }
.sk-title  { height: 44px; width: 55%; }
.sk-line   { height: 16px; width: 85%; }
.sk-short  { width: 55%; }
.sk-btn    { height: 38px; width: 130px; border-radius: 8px; }


#main-content { width: 100%; }

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}
.blob-1 {
    width: 480px; height: 480px;
    background: var(--color-secondary);
    top: -100px; left: -80px;
    animation: drift 16s ease-in-out infinite alternate;
}
.blob-2 {
    width: 360px; height: 360px;
    background: var(--color-accent);
    bottom: -60px; right: 28%;
    animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(24px,16px) scale(1.06); }
}

.hero-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 1;
    min-height: 0;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7% 5% 7% 7%;
    min-width: 0;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: #e8f2e7;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.hero-quote {
    font-size: clamp(0.88rem, 1.5vw, 0.97rem);
    color: var(--color-text-muted);
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1.25;
    display: flex;
    position: relative;
    min-height: 0;
    min-width: 0;
}

.img-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
    display: block;
}
.img-frame:hover img { transform: scale(1.03); }

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 0 18px;
    z-index: 2;
    flex-shrink: 0;
}
.scroll-cue span {
    display: block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-secondary);
    opacity: 0.3;
    animation: bounce-dot 1.4s ease-in-out infinite;
}
.scroll-cue span:nth-child(2) { animation-delay: .18s; opacity: .55; }
.scroll-cue span:nth-child(3) { animation-delay: .36s; opacity: .85; }
@keyframes bounce-dot {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

.features-strip {
    background: linear-gradient(135deg, #1a3a16 0%, #2d5a27 50%, #4a8c3f 100%);
    padding: 26px 0;
}
.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #fff;
    flex: 1;
    min-width: 180px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease var(--delay,0s), transform 0.45s ease var(--delay,0s);
}
.feature-item.visible { opacity: 1; transform: none; }
.feature-icon { font-size: 1.3rem; color: var(--color-accent); flex-shrink: 0; }
.feature-item strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.feature-item p { font-size: 0.76rem; opacity: 0.72; margin: 0; }
.feature-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); flex-shrink: 0; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-eyebrow {
    display: inline-block;
    background: #c5a059;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.section-eyebrow.light {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
}
.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}
.section-title.light { color: #fff; }
.section-sub {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}
.section-cta { text-align: center; margin-top: 36px; }

.products-section {
    padding: 80px 40px;
    max-width: 1260px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    color: inherit;
}


.product-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f4f0;
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--color-secondary);
    opacity: 0.35;
}

.product-badge-sold {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(45,90,39,.82);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 4px;
    letter-spacing: 0.2px;
}

.product-info {
    padding: 12px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.product-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primary);
}
.product-rating {
    display: flex; align-items: center; gap: 3px;
    font-size: 0.72rem;
    color: #ffa800;
    font-weight: 600;
}



.no-products {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.services-section {
    background: linear-gradient(135deg, #1a3a16 0%, #2d5a27 60%, #3d7234 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}
.services-bg-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(90px, 16vw, 180px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,.03);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}
.services-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.services-text { display: flex; flex-direction: column; gap: 16px; }
.services-desc {
    color: rgba(255,255,255,.75);
    font-size: 0.92rem;
    line-height: 1.75;
    max-width: 420px;
}
.services-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.service-tile {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.25s;
    cursor: default;
}
.service-tile i { font-size: 1.1rem; color: var(--color-accent); flex-shrink: 0; }
.service-tile:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-2px);
}

.random-section {
    padding: 80px 40px;
    max-width: 1260px;
    margin: 0 auto;
}
.random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 14px;
}
.random-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    color: inherit;
}

.random-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f4f0;
}
.random-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.random-card:hover .random-img-wrap img { transform: scale(1.04); }
.random-info {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.random-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.random-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
}

.random-card-skeleton {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.rsk-img   { aspect-ratio: 1; width: 100%; border-radius: 0; }
.rsk-info  { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rsk-name  { height: 13px; width: 72%; border-radius: 5px; }
.rsk-price { height: 13px; width: 42%; border-radius: 5px; }

.cta-banner {
    background: #f4f7f4;
    border-top: 1px solid #e0e6e0;
    padding: 72px 40px;
}
.cta-banner-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.cta-leaf {
    position: absolute;
    font-size: 4rem;
    color: var(--color-secondary);
    opacity: 0.08;
    pointer-events: none;
}
.cta-leaf-l { top: -16px; left: -50px; transform: rotate(-30deg); }
.cta-leaf-r { bottom: -16px; right: -50px; transform: rotate(140deg); }
.cta-banner-inner h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.cta-banner-inner p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin-bottom: 26px;
}
.cta-banner-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}











.product-search-wrapper {
    position: relative;
}

.product-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.product-search-input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e6e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    color: #444;
    background: #fff;
}

.product-search-input:focus {
    border-color: #2d5a27;
}

.product-search-input.product-search-selected {
    color: #2d5a27;
    font-weight: 600;
    border-color: #2d5a27;
}

.product-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e6e0;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    z-index: 3000;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-dropdown::-webkit-scrollbar {
    display: none;
}

.product-dropdown.open {
    display: block;
}

.product-option {
    padding: 10px 14px;
    font-size: 0.92rem;
    color: #444;
    cursor: pointer;
    transition: background 0.15s;
}

.product-option:hover {
    background: #f4f7f4;
    color: #2d5a27;
}

.product-no-results {
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #aaa;
    text-align: center;
}

.product-search-error {
    color: #d9534f;
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 600;
}

/* ============================================
   STANDARDIZED RESPONSIVE BREAKPOINTS
   Matching products.css: 1100px, 768px, 480px
   ============================================ */

/* ── 1100px: Small laptop / tablet landscape ── */
@media (max-width: 1100px) {
    /* Hero section: collapse at same width as products grid */
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    .hero-container {
        flex-direction: column-reverse;
    }
    .hero-content {
        padding: 50px 24px 36px;
    }
    .hero-image {
        min-height: 52vw;
        max-height: 60vw;
        flex: none;
    }

    /* Features strip: stack at 1100px (was 900px) */
    .features-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-divider {
        display: none;
    }

    /* Products grid: 5→3 columns at 1100px (matches products.css) */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Random grid: add 3-column step at 1100px (was jumping 5→2) */
    .random-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Services: keep 2 columns at 1100px, collapse later at 768px */
    .services-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ── 768px: Tablet portrait ── */
@media (max-width: 768px) {
    /* Section padding */
    .products-section,
    .random-section,
    .cta-banner {
        padding: 60px 20px;
    }
    .services-section {
        padding: 60px 20px;
    }

    /* Grids: 3→2 columns at 768px */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .random-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Services: collapse to 1 column at 768px (was 900px) */
    .services-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .services-tiles {
        grid-template-columns: 1fr;
    }
    .services-desc {
        max-width: 100%;
    }

    /* CTA buttons */
    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-banner-btns {
        flex-direction: column;
        align-items: center;
    }
    .features-inner {
        padding: 0 20px;
    }

    /* Feature items: ensure they stack cleanly */
    .feature-item {
        min-width: 100%;
        padding: 10px 0;
    }
}

/* ── 480px: Small phones ── */
@media (max-width: 480px) {
    /* Section padding tighten */
    .products-section,
    .random-section,
    .cta-banner {
        padding: 40px 16px;
    }
    .services-section {
        padding: 40px 16px;
    }

    /* Hero content tightening */
    .hero-content {
        padding: 30px 16px 24px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
    .hero-quote {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }
    .hero-eyebrow {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    .hero-image {
        min-height: 60vw;
        max-height: 70vw;
    }

    /* Grids: keep 2 columns but tighten gap */
    .products-grid {
        gap: 10px;
    }
    .random-grid {
        gap: 10px;
    }

    /* Product cards: smaller text */
    .product-name {
        font-size: 0.82rem;
    }
    .product-price {
        font-size: 0.82rem;
    }
    .product-info {
        padding: 8px 8px 10px;
    }
    .product-img-wrap {
        aspect-ratio: 1/1;
    }

    /* Random cards: smaller */
    .random-name {
        font-size: 0.75rem;
    }
    .random-price {
        font-size: 0.75rem;
    }
    .random-info {
        padding: 6px 8px 10px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.3rem;
    }
    .section-sub {
        font-size: 0.8rem;
    }
    .section-header {
        margin-bottom: 24px;
    }

    /* Services section */
    .services-bg-text {
        font-size: 60px;
    }
    .services-desc {
        font-size: 0.82rem;
    }
    .service-tile {
        font-size: 0.78rem;
        padding: 14px 12px;
    }
    .service-tile i {
        font-size: 0.95rem;
    }

    /* CTA banner */
    .cta-banner-inner h2 {
        font-size: 1.2rem;
    }
    .cta-banner-inner p {
        font-size: 0.82rem;
    }
    .cta-banner {
        padding: 48px 16px;
    }
    .cta-leaf {
        display: none;
    }

    /* Buttons: full width on mobile */
    .hero-cta-group .btn,
    .cta-banner-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* Features strip: tighten */
    .features-strip {
        padding: 16px 0;
    }
    .features-inner {
        padding: 0 16px;
        gap: 4px;
    }
    .feature-item {
        padding: 8px 0;
        gap: 8px;
    }
    .feature-item strong {
        font-size: 0.8rem;
    }
    .feature-item p {
        font-size: 0.7rem;
    }
    .feature-icon {
        font-size: 1rem;
    }

    .scroll-cue {
        padding: 8px 0 12px;
    }
    .scroll-cue span {
        width: 4px;
        height: 4px;
    }
}
