/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-details-section {
    padding: 120px 5% 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 1.5rem 2rem 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: #b5bcc3;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Products with showWhole: true - photo shown complete, not cropped */
.main-image.show-whole {
    height: auto;
    background: #fff;
}

.main-image.show-whole img {
    height: auto;
    max-height: 640px;
    object-fit: contain;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 100px;
    height: 100px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.product-info-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.product-category {
    display: inline-block;
    background: rgba(45,106,79,0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.product-botanical {
    font-style: italic;
    color: var(--gray);
    margin-top: -0.8rem;
}

.product-description {
    color: #495057;
    line-height: 1.8;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-product-btn,
.whatsapp-product-btn {
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-product-btn {
    background: var(--primary);
    color: white;
}

.contact-product-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.whatsapp-product-btn {
    background: white;
    color: #128c4b;
    border: 2px solid #25D366;
}

.whatsapp-product-btn:hover {
    background: #25D366;
    color: white;
    transform: translateY(-3px);
}

/* ---------- Key features (hero) ---------- */
.key-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.key-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e3ece7;
    border-radius: 14px;
    background: #f6faf8;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--dark);
}

.key-features i {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
}

.key-features small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2px;
}

/* ---------- Page sections ---------- */
.pd-section,
.related-products {
    padding: 0 2rem 2.5rem;
}

.pd-section h2,
.related-products h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pd-section h2 > i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.pd-section a {
    color: var(--primary);
    font-weight: 600;
}

.pd-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    margin-bottom: 0.75rem;
}

.pd-heading h2 { margin: 0; }

.pd-number {
    flex: none;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pd-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-dark);
}

.pd-lead {
    color: #495057;
    line-height: 1.8;
    max-width: 75ch;
    margin-bottom: 1.5rem;
}

/* product information grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #e3ece7;
    border: 1px solid #e3ece7;
    border-radius: 16px;
    overflow: hidden;
}

.info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.8rem;
    align-content: start;
    padding: 1.1rem 1.2rem;
    background: #fff;
}

.info-icon {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(45,106,79,0.1);
    color: var(--primary);
    font-size: 0.85rem;
}

.info-item dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray);
}

.info-item dd {
    color: var(--dark);
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* common uses */
.uses-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.uses-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #fff7ef;
    border: 1px solid #f8dcc2;
    color: #7a3e1d;
    font-weight: 500;
    font-size: 0.9rem;
}

.uses-list i {
    color: var(--secondary-dark);
    font-size: 0.75rem;
}

/* farming / markets / storage cards */
.product-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.note-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    background: #fff;
    transition: var(--transition);
}

.note-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.note-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(45,106,79,0.1);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.pd-section .note-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.note-card p,
.product-quality p {
    color: #495057;
    line-height: 1.75;
    font-size: 0.93rem;
}

.note-card p + p { margin-top: 0.6rem; }

/* request a quote */
.quote-band {
    margin: 0 2rem 2.5rem;
    padding: 2rem 2.2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.quote-band h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.quote-band p {
    opacity: 0.9;
    max-width: 55ch;
    line-height: 1.7;
}

.quote-contacts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.9rem;
    font-size: 0.92rem;
}

.quote-contacts a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quote-contacts i { opacity: 0.8; margin-right: 0.3rem; }

.quote-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 12px 24px;
    border-radius: 40px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.quote-btn:hover { transform: translateY(-3px); }

.quote-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}

.quote-btn-ghost:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 992px) {
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-notes { grid-template-columns: 1fr; }
}

/* ---------- Related products ---------- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.related-card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6eee8;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 2px 6px rgba(20, 60, 40, 0.04), 0 8px 22px rgba(20, 60, 40, 0.05);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: #cfe3d6;
    box-shadow: 0 18px 36px rgba(45, 106, 79, 0.14);
}

.related-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.related-card:hover img { transform: scale(1.06); }

.related-card span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    border-top: 1px solid #eef3ef;
    background: #f8fbf9;
    transition: background 0.3s ease, color 0.3s ease;
}

.related-card span::after {
    content: "\2192";
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.related-card:hover span { background: var(--primary); color: #fff; }
.related-card:hover span::after { color: #fff; transform: translateX(3px); }

@media (max-width: 768px) {
    .product-details-section { padding: 100px 4% 60px; }
    .breadcrumb { padding: 1.2rem 1.5rem 0; }
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    .pd-section,
    .related-products { padding: 0 1.5rem 2rem; }
    .quote-band { margin: 0 1.5rem 2rem; padding: 1.6rem; }
    .product-name { font-size: 1.8rem; }
    .main-image { height: 300px; }
    .thumbnail { width: 70px; height: 70px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .key-features,
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .button-group,
    .quote-actions { flex-direction: column; width: 100%; }
    .button-group a,
    .quote-actions a { width: 100%; justify-content: center; }
    .pd-number { width: 46px; height: 46px; font-size: 1.1rem; }
}
