/* ==========================================
   BHOO YASH - PLANT DETAILS PAGE
========================================== */

.plant-detail-page {
    width: 100%;
    min-height: 70vh;
    padding: 35px 20px 65px;
    background: #f7faf5;
    box-sizing: border-box;
}

.plant-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */

.plant-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 14px;
    color: #555;
}

.plant-breadcrumb a {
    color: #27823a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.plant-breadcrumb a:hover {
    color: #155724;
}

.plant-breadcrumb .crumb-sep {
    color: #999;
}

.plant-breadcrumb span {
    overflow-wrap: anywhere;
}

/* Main Layout */

.plant-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 50px;
}

/* Gallery */

.plant-gallery {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.plant-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
    max-height: 560px;
    overflow-y: auto;
    flex-shrink: 0;
}

.plant-thumb {
    width: 78px;
    height: 78px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.plant-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-thumb:hover,
.plant-thumb.active {
    border-color: #27823a;
}

.plant-detail-image {
    position: relative;
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f6ec;
    border-radius: 18px;
}

.plant-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-image-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 8px 16px;
    color: #ffffff;
    background: #27823a;
    border-radius: 0 0 14px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Plant Information */

.plant-detail-info {
    min-width: 0;
}

.plant-category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: #247b35;
    background: #e8f5e7;
    border: 1px solid #d8ebd5;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.plant-detail-info h1 {
    margin: 0 0 14px;
    color: #183c20;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Stock Status */

.plant-stock {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 600;
}

.plant-stock.available {
    color: #27823a;
}

.plant-stock.unavailable {
    color: #d93025;
}

.plant-stock span {
    color: #777;
    font-size: 13px;
    font-weight: 400;
}

/* Option Blocks (Pot Size) */

.plant-option-block {
    margin-bottom: 26px;
}

.plant-option-block h3,
.plant-description h3 {
    margin: 0 0 14px;
    color: #183c20;
    font-size: 20px;
    font-weight: 700;
}

.pot-option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pot-option {
    display: block;
    cursor: pointer;
}

.pot-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pot-option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 16px 8px;
    box-sizing: border-box;
    text-align: center;
    color: #183c20;
    background: #ffffff;
    border: 1px solid #dfe8da;
    border-radius: 10px;
    transition: background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.pot-option-box i {
    font-size: 20px;
    color: #27823a;
}

.pot-option-box .pot-name {
    font-size: 14px;
    font-weight: 600;
}

.pot-option-box strong {
    font-size: 13px;
    font-weight: 700;
}

.pot-option:hover .pot-option-box {
    border-color: #27823a;
}

.pot-option input:checked + .pot-option-box {
    color: #ffffff;
    background: #27823a;
    border-color: #27823a;
}

.pot-option input:checked + .pot-option-box i {
    color: #ffffff;
}

.pot-option input:focus-visible + .pot-option-box {
    outline: 2px solid #155724;
    outline-offset: 2px;
}


/* ==========================================
   PRICE
========================================== */

.plant-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.current-price {
    color: #183c20;
    font-size: 34px;
    font-weight: 700;
}

.old-price {
    color: #888;
    font-size: 18px;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-block;
    padding: 6px 9px;
    color: #247b35;
    background: #e8f5e7;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    color: #777;
    font-size: 13px;
}

/* ==========================================
   ACTION BUTTONS LAYOUT
========================================== */

.plant-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

/* ==========================================
   QUANTITY SELECTOR
========================================== */

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 150px;
    height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
    background: #fff8f5;
    border: 1px solid #eaded8;
    border-radius: 30px;
}

.quantity-selector .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 35px;
    padding: 0;
    border: none;
    background: transparent;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}

.quantity-selector input {
    width: 40px;
    height: 35px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    text-align: center;
    font-size: 15px;
    font-family: inherit;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector .qty-btn:hover {
    color: #27823a;
}

.quantity-selector .qty-btn:disabled {
    color: #bbb;
    cursor: not-allowed;
}

/* ==========================================
   PRIMARY AND SECONDARY BUTTONS
========================================== */

.plant-primary-btn,
.plant-secondary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

.plant-primary-btn {
    color: #fff;
    background: #27823a;
    border: 1px solid #27823a;
}

.plant-primary-btn:hover {
    color: #fff;
    background: #1d652c;
    border-color: #1d652c;
    transform: translateY(-1px);
}

.plant-primary-btn:disabled {
    color: #fff;
    background: #999;
    border-color: #999;
    cursor: not-allowed;
    transform: none;
}

.plant-secondary-btn {
    color: #27823a;
    background: #fff;
    border: 1px solid #27823a;
}

.plant-secondary-btn:hover {
    color: #155724;
    background: #eaf6e9;
    border-color: #155724;
    text-decoration: none;
}

.plant-detail-actions a:hover {
    text-decoration: none;
}

/* Remove default form spacing */
.add-to-cart-form button {
    margin: 0;
}

/* ==========================================
   DIVIDER
========================================== */

.plant-detail-divider {
    width: 100%;
    height: 1px;
    margin: 30px 0 24px;
    background: #e7ece5;
}

/* ==========================================
   DESCRIPTION
========================================== */

.plant-description p {
    margin: 0;
    color: #626b61;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {
    .plant-detail-card {
        gap: 30px;
    }

    .plant-detail-info h1 {
        font-size: 32px;
    }

    .current-price {
        font-size: 30px;
    }

    .pot-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plant-detail-actions,
    .add-to-cart-form {
        gap: 10px;
    }

    .plant-primary-btn,
    .plant-secondary-btn {
        padding: 0 16px;
        font-size: 14px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
    .plant-detail-page {
        padding: 25px 14px 40px;
    }

    .plant-breadcrumb {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .plant-detail-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .plant-detail-info h1 {
        font-size: 28px;
    }

    .current-price {
        font-size: 28px;
    }

    .plant-option-block h3,
    .plant-description h3 {
        font-size: 18px;
    }

    .plant-description p {
        font-size: 14px;
    }

    .plant-detail-actions {
        align-items: flex-start;
        gap: 12px;
    }

    .add-to-cart-form {
        gap: 10px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {
    .plant-detail-info h1 {
        font-size: 24px;
    }

    .current-price {
        font-size: 25px;
    }

    .plant-detail-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .add-to-cart-form {
        display: grid;
        grid-template-columns: 135px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .quantity-selector {
        width: 135px;
    }

    .add-to-cart-form .plant-primary-btn {
        width: 100%;
        min-width: 0;
        padding: 0 8px;
        font-size: 13px;
    }

    .plant-detail-actions > .plant-secondary-btn {
        width: 100%;
    }
}
