/* ==========================================
   PIZZA COLUMN STYLES - 2-COLUMN CRUST LAYOUT
   ========================================== */

/* New Crust Banner */
.new-crust-banner {
    background: linear-gradient(135deg, #00693e 0%, #00a859 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 105, 62, 0.3);
}

.new-crust-banner h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.new-crust-banner p {
    font-size: 1.1em;
    margin: 5px 0;
}

/* Pizza Cards Container */
.pizzas-container {
    padding: 20px 0;
}

.pizza-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pizza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Pizza Image */
.pizza-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.pizza-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* NEW Badge on Image */
.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #00a859;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

[dir="rtl"] .new-badge {
    left: auto;
    right: 15px;
}

/* Pizza Info Section */
.pizza-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pizza-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #CD2027;
    margin-bottom: 10px;
    text-align: center;
}

.pizza-description {
    color: #000;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
    font-weight: 400;
}

/* Price Section */
.price-section {
    margin-top: auto;
}

/* Crust Row - for 2-column layout */
.crust-row {
    display: flex !important;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* Crust Pricing */
.crust-pricing {
    background: #f8f8f8;
    padding: 15px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Half-width crust (for 2-column layout) */
.crust-half {
    flex: 1 1 0%;
    min-width: 0;
    width: 50%;
    max-width: 50%;
    margin-bottom: 0;
}

/* Crust Name Header */
.crust-name-header {
    font-weight: bold;
    color: #00693e;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* NEW Tag in Crust Header */
.new-tag {
    background: #ffd700;
    color: #00693e;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* Size Badge - REDUCED PADDING */
.size-badge {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    min-width: 75px;
    text-align: center;
    transition: all 0.2s ease;
}

.size-badge:hover {
    border-color: #00693e;
    box-shadow: 0 2px 4px rgba(0,105,62,0.2);
}

.size-name {
    display: block;
    font-size: 0.8em;
    color: #000;
    margin-bottom: 3px;
    font-weight: 600;
}

.size-price {
    display: block;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

/* Crust Separator */
.crust-separator {
    height: 1px;
    background: #ddd;
    margin: 12px 0;
}

/* Arabic RTL Support */
[dir="rtl"] body,
[dir="rtl"] .pizza-card,
[dir="rtl"] .pizza-name,
[dir="rtl"] .pizza-description {
    font-family: 'Droid Arabic Kufi', serif, 'Century Gothic', Arial;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    /* Desktop - larger spacing and fonts */
    .crust-pricing {
        padding: 18px 15px;
    }
    
    .crust-half {
        min-width: 45%;
    }
    
    .crust-name-header {
        font-size: 1.15em;
        margin-bottom: 14px;
    }
    
    .size-badge {
        min-width: 80px;
        padding: 10px 12px;
    }
    
    .size-name {
        font-size: 0.85em;
    }
    
    .size-price {
        font-size: 1.05em;
    }
    
    .crust-row {
        gap: 12px;
    }
    
    .crust-separator {
        margin: 15px 0;
    }
}

@media (max-width: 992px) {
    .crust-name-header {
        font-size: 1em;
    }
    
    .size-badge {
        min-width: 72px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    /* Tablet - medium sizing */
    .crust-pricing {
        padding: 14px 12px;
    }
    
    .crust-name-header {
        font-size: 1.05em;
    }
    
    .size-badge {
        min-width: 74px;
        padding: 8px 10px;
    }
}
@media (min-width: 768px) {
    /* Ensure side-by-side on desktop */
    .crust-row {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .crust-half {
        flex: 1 1 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 992px) {
    .crust-name-header {
        font-size: 0.85em;
    }
    
    .size-badge {
        min-width: 60px;
        padding: 3px 5px;
    }
}

@media (max-width: 768px) {
    .new-crust-banner h2 {
        font-size: 1.5em;
    }
    
    .new-crust-banner p {
        font-size: 0.95em;
    }
    
    .pizza-name {
        font-size: 1.3em;
    }
}

@media (max-width: 576px) {
    .pizza-info {
        padding: 15px;
    }
    
    .crust-pricing {
        padding: 12px 10px;
    }
    
    /* Keep side-by-side but reduce gap on mobile */
    .crust-row {
        gap: 8px;
    }
    
    .crust-name-header {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    .size-badge {
        min-width: 68px;
        padding: 7px 8px;
    }
    
    .size-name {
        font-size: 0.75em;
    }
    
    .size-price {
        font-size: 0.9em;
    }
    
    .crust-separator {
        margin: 12px 0;
    }
} 
/* Desktop: Make crust boxes smaller so 3 columns fit cleanly */
@media (min-width: 992px) {

    /* Reduce padding inside each crust box */
    .crust-pricing {
        padding: 12px 10px !important;
    }

    /* Reduce spacing between the two crust boxes */
    .crust-row {
        gap: 8px !important;
    }

    /* Make each crust half slightly narrower */
    .crust-half {
        flex: 1 1 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }

    /* Reduce header font size so names fit */
    .crust-name-header {
        font-size: 0.95em !important;
        margin-bottom: 8px !important;
    }

    /* Reduce the size badges */
    .size-badge {
        min-width: 60px !important;
        padding: 6px 6px !important;
    }

    .size-name {
        font-size: 0.75em !important;
    }

    .size-price {
        font-size: 0.9em !important;
    }
}
/* Papa John's Red Banner */
.new-crust-banner {
    background: #CD2027 !important;
    color: #FFFFFF !important;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(205,32,39,0.3);
}

.new-crust-banner h2,
.new-crust-banner p {
    color: #FFFFFF !important;
}
/* Full-width Papa John's Red Banner */
.new-crust-banner {
    width: 100% !important;
    max-width: 100% !important;
    background: #CD2027 !important;
    border-radius: 0 !important;
    padding: 28px 0 !important;
    color: #FFFFFF !important;
    margin: 0 auto 30px auto !important;
    box-shadow: none !important;
    text-align: center;
}

/* Banner Text */
.new-crust-banner h2,
.new-crust-banner p {
    color: #FFFFFF !important;
    margin: 0;
}

/* Desktop spacing */
@media (min-width: 992px) {
    .new-crust-banner h2 {
        font-size: 2em !important;
        margin-bottom: 8px !important;
    }
    .new-crust-banner p {
        font-size: 1.1em !important;
    }
}
/* Crust NEW tag - matching banner red */
.new-tag {
    background: #CD2027 !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
}
/* Final Screens */
@media (min-width: 1400px) {
    /* 1400+ is already fine – keep it just a bit compact */
    .size-badge {
        min-width: 62px !important;
        padding: 6px 6px !important;
    }
    .crust-row {
        gap: 6px !important;
    }
}

/* Laptop / small desktop - UPDATED TO FIX OVERLAPPING */
@media (min-width: 992px) and (max-width: 1399px) {
    .size-badge {
        min-width: 48px !important;
        padding: 4px 3px !important;
    }
    .size-name {
        font-size: 0.62em !important;
    }
    .size-price {
        font-size: 0.76em !important;
    }
    .crust-name-header {
        font-size: 0.78em !important;
    }
    .crust-row {
        gap: 4px !important;
    }
    .crust-pricing {
        padding: 8px 5px !important;
    }
    .size-options {
        gap: 3px !important;
        flex-wrap: nowrap !important;
    }
}



/* Tablet landscape (768–991) - UPDATED TO FIX OVERLAPPING */
@media (min-width: 768px) and (max-width: 991px) {
    .size-badge {
        min-width: 52px !important;
        padding: 5px 4px !important;
    }
    .size-name {
        font-size: 0.66em !important;
    }
    .size-price {
        font-size: 0.82em !important;
    }
    .crust-name-header {
        font-size: 0.78em !important;
    }
    .crust-row {
        gap: 5px !important;
    }
    .crust-pricing {
        padding: 9px 6px !important;
    }
}
/* Regular Mobile (400px - 576px) */
@media (min-width: 400px) and (max-width: 576px) {
    .crust-pricing {
        padding: 10px 8px !important;
    }
    .crust-row {
        gap: 6px !important;
    }
    .crust-name-header {
        font-size: 0.95em !important;
        margin-bottom: 8px !important;
    }
    .size-badge {
        min-width: 62px !important;
        padding: 6px 6px !important;
    }
    .size-name {
        font-size: 0.7em !important;
    }
    .size-price {
        font-size: 0.86em !important;
    }
    .size-options {
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }
    .crust-separator {
        margin: 10px 0 !important;
    }
}

/* Extra Small Screens (320px - 399px) - iPhone SE, etc */
@media (max-width: 399px) {
    .crust-pricing {
        padding: 8px 4px !important;
    }
    .crust-row {
        gap: 3px !important;
    }
    .crust-name-header {
        font-size: 0.82em !important;
        margin-bottom: 6px !important;
    }
    .size-badge {
        min-width: 52px !important;
        padding: 5px 3px !important;
    }
    .size-name {
        font-size: 0.62em !important;
    }
    .size-price {
        font-size: 0.78em !important;
    }
    .size-options {
        gap: 2px !important;
        flex-wrap: nowrap !important;
    }
    .crust-separator {
        margin: 8px 0 !important;
    }
}
























