/* ============================================
   MENU PAGE STYLES
   Location: assets/dist/css/default_skin/menu.css
   ============================================ */

/* ============================================
   CATEGORY SECTION
   ============================================ */
.category-section {
    margin-bottom: 50px;
}

.category-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.category-underline {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 20px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 380px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ============================================
   PRODUCT IMAGE - FIX ALL IMAGE SIZES
   ============================================ */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    background: #f0f0f0;
}

/* This forces ALL images to be exactly the same size */
.product-img-wrapper .product-img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s ease;
}

/* Fallback for any image that might not have the class */
.product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.product-card:hover .product-img-wrapper .product-img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 3rem;
}

/* ============================================
   DELIVERY BADGE
   ============================================ */
.delivery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    z-index: 10;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.delivery-badge.delivery-disabled {
    background: rgba(220, 53, 69, 0.9);
}

/* ============================================
   PRODUCT BODY
   ============================================ */
.product-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.product-footer {
    margin-top: auto;
    padding-top: 5px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.btn-primary-custom.w-100 {
    width: 100%;
}

/* ============================================
   DELIVERY WARNING
   ============================================ */
.delivery-warning {
    background: #fff3e0;
    border: 1px solid #ffe0b3;
    padding: 10px 15px;
    border-radius: 50px;
    text-align: center;
    width: 100%;
}

.delivery-warning i {
    color: var(--primary);
    margin-right: 8px;
}

.delivery-warning span {
    color: #666;
    font-size: 0.85rem;
}

/* ============================================
   ORDER TYPE BUTTONS
   ============================================ */
.btn-order-type {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid var(--primary);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-order-type:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.btn-order-type:hover i,
.btn-order-type:hover h6,
.btn-order-type:hover small {
    color: white !important;
}

/* ============================================
   MODAL HEADER CUSTOM
   ============================================ */
.modal-header-custom {
    background: linear-gradient(135deg, var(--primary), #f7931e);
    color: white;
    border-bottom: none;
}

.modal-header-custom .modal-title {
    color: white;
}

.modal-header-custom .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   MODAL PRODUCT IMAGE
   ============================================ */
.modal-product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
}

/* ============================================
   QUANTITY SELECTOR
   ============================================ */
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.quantity-input {
    width: 80px;
    text-align: center;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   EMPTY CATEGORY
   ============================================ */
.empty-category {
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    padding: 50px 20px;
    text-align: center;
}

.empty-category i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 15px;
}

.empty-category p {
    color: #6c757d;
    margin-bottom: 0;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast-notification.error {
    background: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   TEXT COLORS
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .product-img-wrapper {
        height: 200px;
    }
    
    .image-placeholder {
        min-height: 200px;
        font-size: 2.5rem;
    }
    
    .category-header h3 {
        font-size: 1.6rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-price {
        margin-left: 0;
        margin-top: 5px;
        text-align: left;
        font-size: 1.1rem;
    }
    
    .category-header h3 {
        font-size: 1.4rem;
    }
    
    .product-img-wrapper {
        height: 180px;
    }
    
    .image-placeholder {
        min-height: 180px;
        font-size: 2.2rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .modal-product-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-input {
        width: 70px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
    }
    
    .product-body {
        padding: 15px;
    }
    
    .btn-primary-custom {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .delivery-warning {
        padding: 8px 12px;
    }
    
    .delivery-warning span {
        font-size: 0.8rem;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .product-img-wrapper {
        height: 160px;
    }
    
    .image-placeholder {
        min-height: 160px;
        font-size: 2rem;
    }
    
    .product-body {
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .product-footer {
        margin-top: 10px;
    }
    
    .btn-primary-custom {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .delivery-warning {
        padding: 6px 10px;
    }
    
    .delivery-warning span {
        font-size: 0.75rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .category-underline {
        width: 40px;
    }
    
    .modal-product-image {
        width: 60px;
        height: 60px;
    }
    
    .quantity-input {
        width: 60px;
        height: 35px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .quantity-selector {
        gap: 10px;
    }
    
    .btn-order-type {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .btn-order-type i {
        font-size: 1.5rem !important;
    }
    
    .modal-body {
        padding: 15px !important;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .product-img-wrapper {
        height: 140px;
    }
    
    .image-placeholder {
        min-height: 140px;
        font-size: 1.8rem;
    }
    
    .product-body {
        padding: 10px;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.7rem;
    }
    
    .btn-primary-custom {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .category-header h3 {
        font-size: 1rem;
    }
    
    .modal-product-image {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   GRID FIXES
   ============================================ */
.row.g-4 {
    --bs-gutter-y: 1.5rem;
}

.col-md-6,
.col-lg-4 {
    display: flex;
}

.product-card {
    width: 100%;
}

/* ============================================
   ULTRA SMALL DEVICES
   ============================================ */
@media (max-width: 350px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .product-img-wrapper {
        height: 120px;
    }
    
    .image-placeholder {
        min-height: 120px;
        font-size: 1.5rem;
    }
    
    .product-body {
        padding: 8px;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
    
    .product-description {
        font-size: 0.65rem;
    }
}