﻿.menu-section {
    padding: 60px 40px;
}

.menu-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top:100px;
}


.menu-products {
    flex: 1;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: all 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

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

.product-body {
    padding: 15px;
}

    .product-body h5 {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 10px;
    }

.product-price {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}


.menu-sidebar {
    width: 300px;
}

.sidebar-box {
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin-bottom: 30px;
    background: #fff;
}

    .sidebar-box h5 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
    }


.search-form {
    display: flex;
    gap: 10px;
}

    .search-form input {
        flex: 1;
        height: 40px;
        border: 1px solid #ccc;
    }

    .search-form button {
        background: #f39c12;
        color: #fff;
        border: none;
        padding: 0 15px;
        cursor: pointer;
        transition: 0.2s ease;
    }

        .search-form button:hover {
            background: #d87f0a;
        }


.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-list li {
        margin-bottom: 8px;
    }

    .category-list a {
        text-decoration: none;
        color: #333;
        transition: 0.2s ease;
    }

        .category-list a:hover {
            color: #f39c12;
        }


@media (max-width: 1024px) {

    .menu-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .menu-products,
    .menu-sidebar {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {

    .menu-section {
        padding: 40px 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .search-form {
        flex-direction: column;
    }

        .search-form button {
            height: 40px;
        }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 20px;
        text-align: center;
    }

    .product-image {
        height: 180px;
    }

    .sidebar-box {
        padding: 15px;
    }
}



.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: #333;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .category-list a::before {
        content: "›";
        color: var(--primary-color);
        font-weight: bold;
        font-size: 16px;
        transition: 0.2s ease;
    }

    .category-list a:hover {
        color: #f39c12;
    }


/* ================= PDP ================= */

.pdp {
    padding: 60px 40px;
}

.pdp-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    margin-top: 100px;
}

/* Media */
.pdp-thumb {
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
}

    .pdp-thumb img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block;
    }

.pdp-gallery {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.pdp-gallery-item {
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

    .pdp-gallery-item img {
        width: 100%;
        height: 70px;
        object-fit: cover;
        display: block;
        transition: transform 0.2s ease;
    }

    .pdp-gallery-item:hover img {
        transform: scale(1.05);
    }

/* Info */
.pdp-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
}

.pdp-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.pdp-currency {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.pdp-amount {
    font-size: 22px;
    color: #111;
}

.pdp-description {
    border-top: 1px solid #eee;
    padding-top: 18px;
    color: #333;
    line-height: 1.7;
}

    /* Ensure sanitized HTML inside description looks good */
    .pdp-description h1,
    .pdp-description h2,
    .pdp-description h3 {
        margin: 14px 0 10px;
        line-height: 1.25;
    }

    .pdp-description p {
        margin: 0 0 12px;
    }

    .pdp-description ul,
    .pdp-description ol {
        margin: 0 0 12px 18px;
    }

@media (max-width: 1024px) {
    .pdp {
        padding: 50px 24px;
    }

    .pdp-wrapper {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .pdp-thumb img {
        height: 380px;
    }

    .pdp-gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .pdp {
        padding: 40px 16px;
    }

    .pdp-thumb img {
        height: 300px;
    }

    .pdp-gallery {
        grid-template-columns: repeat(5, 1fr);
    }

    .pdp-title {
        font-size: 24px;
    }

    .pdp-amount {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pdp-thumb img {
        height: 240px;
    }

    .pdp-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .pdp-gallery-item img {
        height: 62px;
    }
}




/* ================= CART BUTTONS ================= */

.product-actions,
.pdp-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.cart-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
    color: var(--primary-color);
}

    .cart-btn:hover {
        background: var(--primary-color);
        color: #fff;
    }

    .cart-btn.added {
        background: var(--primary-color);
        color: #fff;
    }

.pdp-actions {
    margin-bottom: 20px;
}

@media (max-width: 768px) {

    .product-actions,
    .pdp-actions {
        flex-direction: column;
    }

    .cart-btn {
        width: 100%;
    }
}




/* ================= PDP QTY SELECTOR ================= */

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

    .qty-selector input {
        width: 50px;
        text-align: center;
        border: none;
        outline: none;
        height: 38px;
        font-size: 14px;
    }

.qty-btn {
    width: 36px;
    height: 38px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s ease;
}

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

.pdp-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pdp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-selector {
        max-width:fit-content;
    }

    .add-to-cart-pdp {
        width: 100%;
    }
}

.in-cart-badge {
    margin-top: 10px;
    font-size: 13px;
    color: #333;
    opacity: 0.85;
}

.pdp-in-cart {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.product-actions .btn {
    flex: 1;
}

.remove-from-cart-grid {
    display: none;
}

/* ================= CART PAGE (FULL WIDTH REDESIGN) ================= */

/* Make wrapper wider on desktop */
.menu-wrapper {
    max-width: 1400px;
    width: 100%;
}

/* Main Card */
.cart-card {
    width: 100%;
    background: #fff;
    padding: 50px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
}

/* Container spacing */
.cart-container {
    margin-top: 40px;
}

/* ================= CART ITEM ================= */

.cart-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fafafa;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    transition: 0.25s ease;
}

    .cart-item:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        border-color: var(--primary-color);
    }

    .cart-item img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid #eee;
    }

/* ================= INFO ================= */

.cart-item-info {
    flex: 1;
}

    .cart-item-info a {
        font-weight: 600;
        font-size: 18px;
        text-decoration: none;
        color: #111;
        transition: 0.2s ease;
    }

        .cart-item-info a:hover {
            color: var(--primary-color);
        }

.cart-item-price {
    margin-top: 8px;
    font-size: 15px;
    color: #666;
}

/* ================= QTY CONTROLS ================= */

.cart-qty-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

    .cart-qty-controls .btn {
        padding: 6px 14px;
        border-radius: 8px;
    }

/* ================= LINE TOTAL ================= */

.cart-line-total {
    font-weight: 700;
    font-size: 18px;
    min-width: 120px;
    text-align: right;
}

/* ================= SUMMARY ================= */

.cart-summary {
    margin-top: 40px;
    display: none;
}

.cart-summary-box {
    background: #fff7ed;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #ffe0c2;
}

.cart-subtotal {
    font-size: 22px;
    font-weight: 700;
}

.cart-note {
    margin-top: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.75;
}

.cart-confirm-btn {
    margin-top: 10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .cart-card {
        padding: 35px;
    }
}

@media (max-width: 992px) {

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-line-total {
        text-align: left;
        margin-top: 10px;
    }

    .cart-confirm-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .cart-card {
        padding: 20px;
        border-radius: 10px;
    }

    .cart-item {
        padding: 18px;
    }

        .cart-item img {
            width: 100%;
            height: auto;
        }

    .cart-line-total {
        font-size: 16px;
    }
}
/* ================= CONFIRM ORDER (FULL REDESIGN) ================= */

.confirm-card {
    width: 100%;
    background: #fff;
    padding: 50px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
}

/* Make page use full width on desktop */
.menu-wrapper {
    max-width: 1400px;
    width: 100%;
}

/* ================= GRID LAYOUT ================= */

.confirm-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

/* ================= LEFT SIDE (CART + COMMENT) ================= */

.confirm-cart-preview {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

    .confirm-cart-preview h5 {
        margin-bottom: 20px;
        font-weight: 600;
    }

    .confirm-cart-preview .d-flex {
        font-size: 15px;
        margin-bottom: 10px;
    }

.confirm-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: 700;
    font-size: 20px;
}

.confirm-comment {
    margin-top: 30px;
}

    .confirm-comment label {
        font-weight: 600;
        display: block;
        margin-bottom: 10px;
    }

    .confirm-comment textarea {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #ddd;
        resize: vertical;
        transition: 0.2s ease;
    }

        .confirm-comment textarea:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(255,140,0,0.1);
        }

/* ================= RIGHT SIDE (ADDRESS) ================= */

.confirm-address-list h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.confirm-address-card {
    border: 1px solid #eee;
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: 0.25s ease;
    cursor: pointer;
}

    .confirm-address-card:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        border-color: var(--primary-color);
    }

.confirm-address-label {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
}

.confirm-address-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--primary-color);
    transform: scale(1.1);
}

.confirm-address-content strong {
    font-weight: 600;
    font-size: 15px;
}

/* ================= BUTTONS ================= */

.confirm-add-address {
    margin-top: 15px;
    display: inline-block;
}

.confirm-actions {
    margin-top: 30px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .confirm-card {
        padding: 35px;
    }

    .confirm-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {

    .confirm-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .confirm-card {
        padding: 30px;
    }

    .confirm-actions .btn,
    .confirm-add-address {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .confirm-card {
        padding: 20px;
        border-radius: 10px;
    }

    .confirm-cart-preview {
        padding: 20px;
    }

    .confirm-address-card {
        padding: 18px;
    }

    .confirm-total {
        font-size: 18px;
    }
}




.product-image,
.pdp-thumb {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badge {
    background-color: var(--primary-color); /* or use your primary hex */
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

@media (max-width: 576px) {
    .product-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .product-badges {
        top: 8px;
        right: 8px;
    }
}



.product-price {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.price-new {
}

.price-normal {
    font-weight: 600;
}


.pdp-price {
    margin: 15px 0;
}

.pdp-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}


.pdp-price-normal {
    font-size: 24px;
    font-weight: 600;
}