/* ===================================================
   BOUTIQUE / PRÊT-À-MANGER — pret-a-manger.css
   =================================================== */

/* ---------- HERO BANNER ---------- */
.boutique-hero {
    background: linear-gradient(135deg, #F25F20 0%, #e04a0e 100%);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.boutique-hero::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.boutique-hero__title {
    color: #fff;
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 2rem;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.boutique-hero__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-poppins);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

.boutique-hero__breadcrumb {
    margin-top: 16px;
}

.boutique-hero__breadcrumb a,
.boutique-hero__breadcrumb span {
    font-family: var(--font-poppins);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.boutique-hero__breadcrumb a:hover {
    color: #fff;
}

.boutique-hero__breadcrumb .active {
    color: #fff;
    font-weight: 600;
}

/* ---------- PRODUCT GRID ---------- */
.products-section {
    background: #f5f5fa;
    padding: 40px 0 60px;
    min-height: 50vh;
}

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

/* ---------- PRODUCT CARD ---------- */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card__image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #edeef5;
}

.product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image-wrap img {
    transform: scale(1.05);
}

/* Overlay actions on hover */
.product-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-card__overlay-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--title);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.product-card__overlay-btn--text {
    width: auto;
    padding: 0 14px;
    border-radius: 20px;
    gap: 6px;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 0.8rem;
}

.product-card__overlay-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05); /* slightly smaller scale for larger buttons */
}

/* Badge (sale / new) */
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-poppins);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-card__badge--sale {
    background: var(--error);
}

/* Card body */
.product-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__name {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--title);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card__name a:hover {
    color: var(--primary);
}

.product-card__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.product-card__price {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.product-card__price--old {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--placeholder);
    text-decoration: line-through;
}

.product-card__stock {
    font-family: var(--font-poppins);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.product-card__stock i {
    font-size: 0.5rem;
}

/* ---------- EMPTY STATE ---------- */
.empty-boutique {
    text-align: center;
    padding: 80px 20px;
}

.empty-boutique__icon {
    font-size: 3rem;
    color: var(--placeholder);
    margin-bottom: 16px;
}

.empty-boutique__text {
    font-family: var(--font-poppins);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--label);
}

/* ---------- MODAL (Add to cart) ---------- */
.basket-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.basket-modal .modal-header {
    border-bottom: 1px solid #f0f0f5;
    padding: 20px 28px;
}

.basket-modal .modal-title {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--title);
}

.basket-modal .modal-body {
    padding: 28px;
}

.basket-modal__grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
}

.basket-modal__image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f7fc;
}

.basket-modal__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}

.basket-modal__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basket-modal__name {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--title);
}

.basket-modal__desc {
    font-family: var(--font-poppins);
    font-size: 0.85rem;
    color: var(--label);
    line-height: 1.6;
}

.basket-modal__prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.basket-modal__price-current {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

.basket-modal__price-old {
    font-family: var(--font-poppins);
    font-size: 0.9rem;
    color: var(--placeholder);
    text-decoration: line-through;
}

/* Qty controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e8e8ef;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    margin-top: 12px;
}

.qty-controls__btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #f7f7fc;
    color: var(--title);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-controls__btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-controls__input {
    width: 50px;
    height: 42px;
    border: none;
    background: #fff;
    text-align: center;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 1rem;
    color: var(--title);
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-controls__input::-webkit-outer-spin-button,
.qty-controls__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart button */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-poppins);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #F25F20 0%, #e04a0e 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(242, 95, 32, 0.25);
    margin-top: 16px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #e04a0e 0%, #c9400a 100%);
    box-shadow: 0 6px 18px rgba(242, 95, 32, 0.35);
    transform: translateY(-1px);
}

.btn-add-cart:disabled {
    background: #d1d1d1;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-add-cart .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Note alert */
.product-note {
    background: #fff4f0;
    border: 1px solid #fdddd2;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 16px;
}

.product-note__title {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--error);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-note__text {
    font-family: var(--font-poppins);
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
}

/* ===================================================
   PRODUCT DETAILS PAGE
   =================================================== */

.product-detail {
    background: #f5f5fa;
    padding: 40px 0 60px;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.product-gallery__main {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.product-gallery__main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.product-gallery__share-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-gallery__share-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.product-gallery__thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__thumb:hover {
    border-color: #e8e8ef;
}

.product-gallery__thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Detail info */
.product-info {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-info__name {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--title);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.product-info__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-poppins);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    background: #e8faf1;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.product-info__stock i {
    font-size: 0.5rem;
}

.product-info__price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.product-info__price {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
}

.product-info__price-old {
    font-family: var(--font-poppins);
    font-size: 1rem;
    color: var(--placeholder);
    text-decoration: line-through;
}

.product-info__unit {
    font-family: var(--font-poppins);
    font-size: 0.85rem;
    color: var(--label);
    font-weight: 500;
}

.product-info__description {
    font-family: var(--font-poppins);
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-info__divider {
    border: none;
    height: 1px;
    background: #f0f0f5;
    margin: 20px 0;
}

/* Ingredients */
.product-info__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-bottom: 20px;
}

.product-info__meta-label {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--title);
}

.product-info__meta-value {
    font-family: var(--font-poppins);
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
}

/* Cart actions */
.product-info__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.product-info__actions .qty-controls {
    margin-top: 0;
}

.product-info__actions .btn-add-cart {
    margin-top: 0;
    flex: 1;
    min-width: 180px;
    justify-content: center;
    padding: 14px 28px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-gallery {
        position: static;
    }

    .basket-modal__grid {
        grid-template-columns: 1fr;
    }

    .basket-modal__image img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .boutique-hero {
        padding: 32px 0 28px;
    }

    .boutique-hero__title {
        font-size: 1.5rem;
    }

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

    .product-card__image-wrap {
        height: 190px;
    }

    .product-card__body {
        padding: 14px 16px 18px;
    }

    .product-card__name {
        font-size: 0.9rem;
    }

    .product-card__price {
        font-size: 1.05rem;
    }

    .product-card__overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .product-info {
        padding: 24px;
    }

    .product-info__name {
        font-size: 1.2rem;
    }

    .product-info__price {
        font-size: 1.4rem;
    }

    .product-info__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-info__actions .qty-controls {
        width: 100%;
        justify-content: center;
    }

    .product-info__actions .btn-add-cart {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card__image-wrap {
        height: 220px;
    }

    .product-card__body {
        padding: 16px 18px 20px;
    }

    .product-card__name {
        font-size: 0.95rem;
    }

    .product-card__price {
        font-size: 1.1rem;
    }
}

/* ---------- SVG ICON SIZING ---------- */
.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}

.svg-icon--sm {
    width: 0.75em;
    height: 0.75em;
}

.svg-icon--lg {
    width: 1.25em;
    height: 1.25em;
}

.svg-icon--xs {
    width: 0.5em;
    height: 0.5em;
}