
:root {
    --green: #064b2d;
    --green-dark: #032d1c;
    --green-light: #0d6940;
    --gold: #d9ad45;
    --gold-light: #f1d58b;
    --ivory: #f7f5ec;
    --white: #ffffff;
    --text: #20352a;
    --muted: #7b887f;
    --border: #e2e9e3;
    --shadow: 0 15px 40px rgba(0, 40, 20, 0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--ivory);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* BREADCRUMB */

.breadcrumb-section {
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb-line a {
    color: var(--green);
    font-weight: 600;
}

.breadcrumb-line a:hover {
    color: #ad8329;
}

.breadcrumb-line i {
    color: #b7c1b8;
    font-size: 10px;
}

/* DETAILS SECTION */

.details-section {
    min-height: 65vh;
    padding: 45px 0 75px;
}

.detail-image-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 6px 25px rgba(0, 40, 20, 0.05);
}

.detail-image {
    display: block;
    width: 100%;
    height: 510px;
    object-fit: cover;
    background: #edf1eb;
}

.detail-discount {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    padding: 9px 13px;
    color: var(--green-dark);
    background: var(--gold-light);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.image-caption {
    padding: 13px 18px;
    color: var(--muted);
    background: var(--white);
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.image-caption i {
    color: var(--green);
}

/* PRODUCT INFO */

.detail-info {
    padding: 8px 0 0 10px;
}

.detail-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--green);
    background: #eaf3e9;
    border: 1px solid #d7e7d6;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.detail-title {
    margin: 20px 0 12px;
    color: var(--green-dark);
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.product-code {
    color: var(--muted);
    font-size: 12px;
}

.product-code strong {
    color: var(--green);
    font-weight: 700;
}

.detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
}

.detail-price {
    color: var(--green);
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.detail-old-price {
    color: #9ba69e;
    font-size: 16px;
}

.detail-save {
    padding: 6px 9px;
    color: #8b6518;
    background: #fbf1d7;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: var(--green);
    background: #eaf5eb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.stock-status i {
    font-size: 14px;
}

.detail-divider {
    height: 1px;
    margin: 24px 0;
    background: var(--border);
}

.description-heading {
    margin-bottom: 11px;
    color: var(--green-dark);
    font-size: 16px;
    font-weight: 800;
}

.detail-description {
    margin-bottom: 24px;
    color: #6f7e73;
    font-size: 14px;
    line-height: 1.9;
}

/* QUANTITY */

.quantity-heading {
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    height: 43px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dce5dc;
    border-radius: 8px;
}

.quantity-control button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 100%;
    color: var(--green);
    background: #f3f7f2;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.quantity-control button:hover {
    color: var(--green-dark);
    background: var(--gold-light);
}

.quantity-control input {
    width: 54px;
    height: 100%;
    padding: 5px;
    color: var(--green-dark);
    background: var(--white);
    border: none;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    outline: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

/* ACTION BUTTONS */

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px;
}

.add-detail-cart,
.wishlist-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s;
}

.add-detail-cart {
    flex: 1 1 180px;
    color: var(--white);
    background: var(--green);
    border: 1px solid var(--green);
}

.add-detail-cart:hover {
    color: var(--green-dark);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.wishlist-detail {
    flex: 1 1 180px;
    color: var(--green);
    background: var(--white);
    border: 1px solid #cddbcf;
}

.wishlist-detail:hover,
.wishlist-detail.active {
    color: #bd3841;
    background: #fff0f0;
    border-color: #f1c9cb;
}

/* BENEFITS */

.detail-benefits {
    display: grid;
    gap: 12px;
    margin-top: 25px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.detail-benefits div {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #6c7b70;
    font-size: 12px;
    line-height: 1.6;
}

.detail-benefits i {
    flex: 0 0 22px;
    color: var(--green);
    font-size: 17px;
}

.back-products {
    display: inline-block;
    margin-top: 23px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.back-products:hover {
    color: #aa8126;
}

/* LOADING / NOT FOUND */

.loading-message {
    padding: 60px 15px;
    text-align: center;
}

.loading-message p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.not-found {
    padding: 65px 15px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.not-found-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    color: var(--green);
    background: #edf5ed;
    border-radius: 50%;
    font-size: 30px;
}

.not-found h2 {
    color: var(--green-dark);
    font-size: 25px;
    font-weight: 800;
}

.not-found p {
    margin: 10px 0 22px;
    color: var(--muted);
    font-size: 13px;
}

.primary-btn {
    padding: 11px 18px;
    color: var(--white);
    background: var(--green);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.primary-btn:hover {
    color: var(--green-dark);
    background: var(--gold);
}

/* TOAST */

.details-toast {
    color: var(--white);
    background: var(--green-dark);
    border: 1px solid rgba(217, 173, 69, 0.5);
    border-radius: 9px;
    box-shadow: var(--shadow);
}

.details-toast .toast-body {
    padding: 13px 16px;
    font-size: 13px;
}

.details-toast .bi-check-circle-fill {
    color: var(--gold);
}

/* FOOTER */

.site-footer {
    padding: 22px 0;
    color: rgba(255, 255, 255, 0.75);
    background: var(--green-dark);
    font-size: 12px;
    line-height: 1.8;
}

/* TABLET */

@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        padding-top: 12px;
    }

    .main-navbar .nav-link {
        padding: 10px 5px !important;
    }

    .details-section {
        padding: 35px 0 55px;
    }

    .detail-image {
        height: 400px;
    }

    .detail-info {
        padding: 0;
    }

    .detail-title {
        font-size: 32px;
    }
}

/* MOBILE */

@media (max-width: 575.98px) {
    .main-navbar {
        padding: 10px 0;
    }

    .site-logo {
        width: 41px;
        height: 41px;
    }

    .brand-text {
        font-size: 16px;
    }

    .brand-text small {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .breadcrumb-section {
        padding: 13px 0;
    }

    .breadcrumb-line {
        gap: 8px;
        font-size: 11px;
    }

    .details-section {
        padding: 22px 0 40px;
    }

    .detail-image-card {
        border-radius: 12px;
    }

    .detail-image {
        height: 310px;
    }

    .detail-discount {
        top: 12px;
        left: 12px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .image-caption {
        padding: 10px 13px;
        font-size: 11px;
    }

    .detail-title {
        margin: 15px 0 10px;
        font-size: 27px;
    }

    .detail-price-row {
        gap: 9px;
        margin: 17px 0 13px;
    }

    .detail-price {
        font-size: 27px;
    }

    .detail-old-price {
        font-size: 13px;
    }

    .detail-save {
        font-size: 10px;
    }

    .detail-divider {
        margin: 20px 0;
    }

    .detail-description {
        font-size: 13px;
        line-height: 1.8;
    }

    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .add-detail-cart,
    .wishlist-detail {
        width: 100%;
        min-height: 47px;
        flex-basis: auto;
    }

    .detail-benefits {
        padding: 14px;
    }

    .detail-benefits div {
        align-items: flex-start;
        font-size: 11px;
    }

    .back-products {
        margin-top: 20px;
    }

    .site-footer {
        padding: 17px 10px;
        font-size: 11px;
    }
}
/* Main Section */
.product-details-section {
    background: #f7faf5;
    padding: 40px 0 65px;
}

.product-details-row {
    align-items: flex-start;
}

/* Product Image */
.product-image-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,.035);
}

.product-main-image {
    width: 100%;
    height: 455px;
    object-fit: cover;
    display: block;
}

.product-discount {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #fff0be;
    color: #755600;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 13px;
    border-radius: 7px;
}

.image-caption {
    padding: 12px 16px;
    color: #89948d;
    font-size: 12px;
    border-top: 1px solid #edf0ed;
}

/* Product Info */
.product-info-box {
    padding-left: 25px;
}

.product-category-badge {
    display: inline-block;
    background: #eaf3e8;
    color: var(--primary);
    border: 1px solid #d6e8d4;
    border-radius: 30px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.product-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 14px;
}

.product-id {
    font-size: 13px;
    color: #819087;
    margin-bottom: 22px;
}

.product-id strong {
    color: var(--primary);
}

.product-price-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.product-current-price {
    font-size: 27px;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 14px;
    color: #9ba39e;
    text-decoration: line-through;
}

.product-saving {
    background: #fff2d3;
    color: #8b6100;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 5px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaf5eb;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 6px;
    margin-bottom: 22px;
}

.product-divider {
    border: 0;
    border-top: 1px solid #dce7dc;
    margin: 0 0 22px;
}

.description-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-description {
    font-size: 14px;
    line-height: 1.9;
    color: #78857d;
    margin-bottom: 22px;
}

/* Quantity */
.quantity-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 40px;
}

.quantity-control button {
    width: 39px;
    height: 40px;
    border: 0;
    background: #f3f7f1;
    color: var(--primary);
    font-size: 17px;
}

.quantity-control input {
    width: 48px;
    height: 40px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    outline: none;
    font-weight: 700;
    color: var(--dark);
}

/* Action Buttons */
.product-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 7px;
    padding: 13px 10px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.btn-add-cart:hover {
    background: var(--dark);
    color: #fff;
}

.btn-add-wishlist {
    flex: 1;
    background: #fff;
    color: var(--primary);
    border: 1px solid #cbdccb;
    border-radius: 7px;
    padding: 13px 10px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.btn-add-wishlist:hover {
    background: #edf5ec;
}

/* Delivery Information */
.product-extra-info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.product-extra-info div {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #819087;
    font-size: 13px;
    padding: 7px 0;
}

.product-extra-info i {
    color: var(--primary);
    font-size: 16px;
}

.continue-shopping {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.continue-shopping:hover {
    color: #0b3927;
}

/* Tablet */
@media(max-width: 991px) {
    .product-details-section {
        padding: 30px 0 45px;
    }

    .product-info-box {
        padding-left: 12px;
    }

    .product-main-image {
        height: 380px;
    }

    .product-title {
        font-size: 27px;
    }

    .product-current-price {
        font-size: 24px;
    }
}

/* Mobile */
@media(max-width: 767px) {
    .product-details-section {
        padding: 20px 0 35px;
    }

    .product-details-row {
        row-gap: 25px;
    }

    .product-info-box {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-main-image {
        height: 340px;
    }

    .product-title {
        font-size: 25px;
    }

    .product-category-badge {
        margin-bottom: 13px;
    }

    .product-price-area {
        gap: 9px;
    }

    .product-current-price {
        font-size: 25px;
    }

    .product-action-buttons {
        gap: 8px;
    }

    .btn-add-cart,
    .btn-add-wishlist {
        font-size: 12px;
        padding: 13px 5px;
    }
}

/* Small Mobile */
@media(max-width: 400px) {
    .product-main-image {
        height: 270px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-current-price {
        font-size: 23px;
    }

    .product-action-buttons {
        flex-direction: column;
    }

    .btn-add-cart,
    .btn-add-wishlist {
        width: 100%;
    }
}

.product-action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: 100%;
    margin: 20px 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-action-buttons .btn-add-cart {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #155b3e !important;
    color: #ffffff !important;
    border: 1px solid #155b3e !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 5;
}

.product-action-buttons .btn-add-wishlist {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    color: #155b3e !important;
    border: 1px solid #cbdccb !important;
    border-radius: 7px !important;
}

@media(max-width: 400px) {
    .product-action-buttons {
        flex-direction: column !important;
    }

    .product-action-buttons .btn-add-cart,
    .product-action-buttons .btn-add-wishlist {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}
