@import url("./components/header.css");
@import url("./components/footer.css");



/* ===============================
   LAYOUT
=============================== */

.product-wrapper {
    /* padding: 40px 0; */
}
a{
    color: #6b8e23;
}


.products-hero {
    position: relative;
    min-height: 30vh;              /* balanced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    margin-top: -170px;
}

.products-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* DARK GRADIENT OVERLAY */
.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 1;
}

/* HERO CONTENT */
.products-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 4rem 1rem;
}

.products-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 180px;
}

.products-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #ffffff;
    padding: 18px;
    border-radius: 5px;
}

.variation-message.info {
    color: #b91c1c;              
    background: #fee2e2;         
    border-left: 4px solid #dc2626;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
}
/* ===============================
   MEDIA
=============================== */

.product-media img {
    width: 100%;
    border-radius: 12px;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-row img:hover {
    border-color: #6b8e23;
}
    .zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
}

.zoom-image {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.zoom-container:hover .zoom-image {
    transform: scale(1.8);
}

/* ===============================
   BREADCRUMB
=============================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280; /* muted gray */
    margin-top: 50px;
    background: #ffffff;
    padding: 18px;
    border-radius: 5px;
}

.breadcrumb a {
    color: #000; /* link blue */
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #6b8e23;
    text-decoration: underline;
}

.breadcrumb span {
    color: #9ca3af; /* separator color */
}

.breadcrumb strong {
    color:  var(--btn-color); /* active/current page */
    font-weight: 600;
}
@media (max-width: 768px) {
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 15px;
        padding: 12px;
        margin-top: 20px;
    }
}


/* ===============================
   PRODUCT DETAILS
=============================== */

.product-details h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.short-desc {
    color: #555;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ===============================
   PRICE & DISCOUNT (FINAL)
=============================== */

.price-box {
    margin: 15px 0 20px;
    background: #ffffff;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #efeded;
}

.price-row,
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price {
    font-size: 30px;
    font-weight: 700;
    color: var(--btn-color);
}

.old-price {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
}

.save-text {
    width: 100%;
    margin-top: 4px;
    font-size: 18px;
    font-weight: normal;
    color: #ff1818;
}

.tax-note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.sale-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.sale-timer {
    margin-top: 8px;
    font-size: 13px;
    color: #b45309;
    background: #fff7ed;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}

/* ===============================
   VARIATIONS
=============================== */

.variant-block {
    margin-bottom: 20px;
}

.variant-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-pill {
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-pill.active {
    background:  var(--btn-color);
    color: #fff;
    border-color:  var(--btn-color);
}

/* ===============================
   COLOR SWATCHES
=============================== */

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 2px solid #ddd;
}

.color-swatch.active {
    border-color: #6b8e23;
    box-shadow: 0 0 0 2px rgba(107,142,35,0.3);
}

/* ===============================
   IMAGE SWATCHES
=============================== */

.image-swatch {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.image-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-swatch.active {
    border-color: #6b8e23;
    box-shadow: 0 0 0 2px rgba(107,142,35,0.3);
}

/* ===============================
   QUANTITY
=============================== */

.qty-box {
    margin: 20px 0;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.qty-control button {
    width:40px;
    height:40px;
    border: none;
    background: var(--btn-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

/* ===============================
   ADD TO CART
=============================== */

.add-cart-btn {
    width: 100%;
    padding: 15px;
    background: #6b8e23;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.add-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.cart-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* space between buttons */
}

.add-cart-btn,
.btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-wishlist {
            background: white;
            color: var(--accent-color);
            border: 2px solid var(--accent-color);
            padding: 1rem 1.5rem;
            border-radius: 8px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-wishlist:hover {
            background: var(--accent-color);
            color: white;
        }

/* ===============================
   STATUS & META
=============================== */

.status-text {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.meta {
    margin-top: 20px;
    color: #555;
}

/* ===============================
   MESSAGES
=============================== */

.variation-message {
    background: #f6f6f6;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.variation-message.info {
    color: #555;
}

.variation-message.success {
    color: #2e7d32;
    background: #e8f5e9;
}

.variation-message.warning {
    color: #b26a00;
    background: #fff8e1;
}

.variation-message.error {
    color: #c62828;
    background: #fdecea;
}
.variation-message.error {
    border: 1px solid #c62828;
}

/* ===============================
   INVALID VARIATION STATE
=============================== */

/* ===== VALID SELECTED OPTION ===== */
.variant-pill.active-valid,
.color-swatch.active-valid,
.image-swatch.active-valid {
    border: 2px solid #6b8e23 !important;
    box-shadow: 0 0 0 2px rgba(107,142,35,0.3);
}

/* ===== INVALID SELECTED OPTION ===== */
.variant-pill.active-invalid,
.color-swatch.active-invalid,
.image-swatch.active-invalid {
    border: 2px solid #c62828 !important;
    box-shadow: 0 0 0 2px rgba(198,40,40,0.25);
}

/* ===== DISABLED OPTION (not selectable) ===== */
.variant-pill.disabled-option,
.color-swatch.disabled-option,
.image-swatch.disabled-option {
    opacity: 0.4;
    pointer-events: none;
}

/* ================= REVIEWS ================= */
.product-tabs {
    margin-top: 20px;
    margin-bottom: 50px;
}

.tabs {
    border-bottom: 1px solid #ddd;
}
.product-tabs .tab-content {
    display: none;
    background: #ffffff;
    border-radius: 5px;
    padding: 20px;
}

.product-tabs .tab-content.active {
    display: block;
}

.product-tabs .tab-btn {
    cursor: pointer;
    padding: 10px 18px;
    border: none;
    background: transparent;
    font-weight: 600;
}

.product-tabs .tab-btn.active {
    border-bottom: 2px solid  var(--btn-color);
    background: #ffffff;
    border-top-right-radius: 10px;
}
.tab-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-color:  var(--btn-color);
    color:  var(--btn-color);
}

.reviews-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.no-reviews{
    background: #efefef;
    padding: 10px;
    border-radius: 5px;
}

/* Rating box */
.rating-box {
    padding: 25px;
    border-radius: 5px;
    /*margin-bottom: 30px;*/
    text-align: center;
}

.rating-score {
    font-size: 25px;
    font-weight: bold;
}

.rating-stars span {
    font-size: 20px;
    color: #ccc;
}

.rating-stars .filled {
    color: #ffb400;
}

.rating-count {
    margin-top: 8px;
    color: #666;
}

/* Review cards */
.review-card {
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.review-stars.small span {
    font-size: 14px;
}

.review-comment {
    margin: 10px 0;
    color: #444;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.verified {
    color: #4a7c2c;
    font-size: 12px;
}

/* Review form */
.review-form {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.review-form h4 {
    margin-bottom: 15px;
}

.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.star-input input {
    display: none;
}

.star-input label {
    font-size: 22px;
    color: #ccc;
    cursor: pointer;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: #ffb400;
}

.review-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.review-form button {
    background: #4a7c2c;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

/* Info box */
.review-info {
    background: #efefef;
    padding: 20px;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .review-form {
        position: static;
    }
}
/* Review stars */
.review-stars span {
    font-size: 16px;
    color: #d1d1d1; /* empty star */
}

.review-stars span.filled {
    color: #ffb400; /* filled star (gold) */
}
/* Star base */
.rating-stars span {
    font-size: 18px;
    color: #d1d1d1;
    position: relative;
    display: inline-block;
}

/* Full star */
.rating-stars .filled {
    color: #ffb400;
}

/* Half star */
.rating-stars .half {
    color: #d1d1d1;
}

.rating-stars .half::before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffb400;
}
/* ===============================
   RELATED PRODUCTS (FIXED STYLES)
=============================== */

.related-products-slider .category-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.related-products-slider .category-image img {
    border-radius: 8px;
}

/* Title */
.related-products-slider .related-product-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin-top: 8px;
    text-decoration: none;
    line-height: 1.4;
}

.related-products-slider .related-product-title:hover {
    color: var(--btn-color);
}

/* Price */
.related-products-slider .related-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #6b8e23;
    margin-top: 4px;
}

/* Fix swiper slide height */
.related-products-slider .swiper-slide {
    height: auto;
}

.related-products-slider .category-image {
    height: 180px;              /* fixed image area */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-products-slider .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* keeps image ratio */
}

.related-products-slider .category-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-products-slider .related-product-info {
    padding: 10px 6px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title: max 2 lines */
.related-products-slider .related-product-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 42px;   /* keeps equal height */
}
.related-products-slider .price-current {
    font-size: 16px;
    font-weight: 700;
    color: #6b8e23;
    clear:both;
    display:block;
}

.related-products-slider .price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 6px;
}

/* ===============================
   RELATED PRODUCT PRICE ALIGNMENT
=============================== */

.related-products-slider .related-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.related-products-slider .price-current {
    font-size: 16px;
    font-weight: 700;
    color:  var(--btn-color);
}

.related-products-slider .price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}
.product-meta-row {
    margin: 8px 0 14px;
    font-size: 0.9rem;
    color: #666;
}
.product-meta-row .meta-link {
    color: #2f6b1d;
    text-decoration: none;
}
.product-meta-row .meta-link:hover {
    text-decoration: underline;
}
.meta-separator {
    margin: 0 4px;
}
.tag-pill {
    display: inline-block;
    background: #eef5ea;
    color: #2f6b1d;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-top: 4px;
    text-decoration: none;
}
.tag-pill:hover {
    background: #dfeeda;
}
/* ================= CART ACTIONS – FINAL FIX ================= */

.cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

/* OVERRIDE OLD FULL WIDTH */
.cart-actions .add-cart-btn {
    width: auto !important;
    flex: 1;
    max-width: 320px;
    background: var(--btn-color);
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-actions .add-cart-btn:hover:not(:disabled) {
    background:  var(--btn-color);
}

.cart-actions .add-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* BUY NOW – FIXED STYLE */
.cart-actions .buy-now-btn {
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: #fff;
    color:  var(--btn-color);;
    border: 2px solid  var(--btn-color);;
    cursor: pointer;
    white-space: nowrap;
    height: 50px;
}

.cart-actions .buy-now-btn:hover:not(:disabled) {
    background:  var(--btn-color);
    color: #fff;
}

.cart-actions .buy-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* WISHLIST – MATCH HEIGHT */
.cart-actions .btn-wishlist,
.cart-actions .btn-wishlist-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 10px;
    border: 2px solid  var(--btn-color);
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-actions .btn-wishlist i,
.cart-actions .btn-wishlist-icon i {
    font-size: 18px;
    color: var(--btn-color);
}

.cart-actions .btn-wishlist i.active {
    color: #e63946;
}
.buy-now-btn {
    background: #4a7c2c;
}
/*TRUST BOX*/
.product-trust-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.product-trust-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.shipping-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shipping-info li {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.shipping-info li i {
    color: #28a745;
    margin-right: 8px;
    font-size: 14px;
}

.secure-checkout {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.secure-checkout span {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 28px;
    object-fit: contain;
}
/*TRUST BOX*/
/*Ratings*/
.rating-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: Arial, sans-serif;
    background: #fff;
}
/*Ratings*/