/* =============================================
   DICED PRODUCT PAGES - Branded Single Product
   ============================================= */

/* ===== PRODUCT PAGE LAYOUT ===== */
.single-product .product {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Product image */
.single-product .woocommerce-product-gallery {
    overflow: hidden !important;
}
.single-product .woocommerce-product-gallery img {
    border-radius: 14px !important;
}
.single-product .woocommerce-product-gallery .flex-viewport {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* Breadcrumbs */
.single-product .woocommerce-breadcrumb {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    color: #9CA3AF !important;
    margin-bottom: 16px !important;
}
.single-product .woocommerce-breadcrumb a {
    color: #1B4332 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.single-product .woocommerce-breadcrumb a:hover {
    color: #2D6A4F !important;
}

/* Category link under product */
.single-product .posted_in {
    display: none !important;
}

/* Sale badge */
.single-product .onsale {
    background: #D4A017 !important;
    color: #0d2818 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    min-height: auto !important;
    min-width: auto !important;
}

/* Product title */
.single-product .product_title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1B4332 !important;
    margin-bottom: 8px !important;
}

/* Price */
.single-product .price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1B4332 !important;
}
.single-product .price del {
    color: #9CA3AF !important;
    font-size: 18px !important;
}
.single-product .price ins {
    text-decoration: none !important;
    color: #1B4332 !important;
}

/* Variations */
.single-product .variations td {
    padding: 8px 0 !important;
}
.single-product .variations label {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #1B4332 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.single-product .variations select {
    font-family: 'Outfit', sans-serif !important;
    padding: 12px 16px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    min-height: 48px !important;
    color: #374151 !important;
}
.single-product .variations select:focus {
    border-color: #1B4332 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(27,67,50,0.1) !important;
}

/* Add to cart button */
.single-product .single_add_to_cart_button {
    background: #1B4332 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.3s !important;
}
.single-product .single_add_to_cart_button:hover {
    background: #2D6A4F !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(27,67,50,0.2) !important;
}

/* Quantity input */
.single-product .quantity input[type="number"] {
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 16px !important;
    width: 80px !important;
    text-align: center !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    color: #6B7280 !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}

/* Back to menu button after add to cart */
.single-product .product .summary {
    position: relative;
}

/* WooCommerce messages on product page */
.single-product .woocommerce-message {
    font-family: 'Outfit', sans-serif !important;
    background: #D8F3DC !important;
    border-top-color: #1B4332 !important;
    color: #1B4332 !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}
.single-product .woocommerce-message a {
    color: #1B4332 !important;
    font-weight: 700 !important;
}

/* ===== PRODUCT INFO SECTION ===== */
.diced-pp-info {
    max-width: 100%;
    margin: 30px 0 40px 0;
    font-family: 'Outfit', -apple-system, sans-serif;
}

/* Macro boxes */
.diced-pp-macros {
    margin-bottom: 30px;
}
.diced-pp-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1B4332;
    margin: 0 0 4px 0;
}
.diced-pp-section-sub {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.diced-pp-macro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.diced-pp-macro-box {
    text-align: center;
    padding: 18px 10px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}
.diced-pp-macro-num {
    display: block;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.diced-pp-macro-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
}
/* Macro colour coding */
.diced-pp-macro-cal {
    background: #FFF8E1;
    border-color: #FFECB3;
}
.diced-pp-macro-cal .diced-pp-macro-num { color: #F57F17; }

.diced-pp-macro-pro {
    background: #E8F5E9;
    border-color: #C8E6C9;
}
.diced-pp-macro-pro .diced-pp-macro-num { color: #2E7D32; }

.diced-pp-macro-carbs {
    background: #E3F2FD;
    border-color: #BBDEFB;
}
.diced-pp-macro-carbs .diced-pp-macro-num { color: #1565C0; }

.diced-pp-macro-fat {
    background: #FCE4EC;
    border-color: #F8BBD0;
}
.diced-pp-macro-fat .diced-pp-macro-num { color: #C62828; }

/* ===== TABS ===== */
.diced-pp-tabs {
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
}
.diced-pp-tab-buttons {
    display: flex;
    background: #F8F9FA;
    border-bottom: 2px solid #E5E7EB;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.diced-pp-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.diced-pp-tab-btn:hover {
    color: #1B4332;
    background: rgba(27,67,50,0.04);
}
.diced-pp-tab-btn.diced-pp-tab-active {
    color: #1B4332;
    border-bottom-color: #1B4332;
    background: #ffffff;
    font-weight: 700;
}

/* Tab content */
.diced-pp-tab-content {
    display: none;
    padding: 24px;
}
.diced-pp-tab-content.diced-pp-tab-visible {
    display: block;
}
.diced-pp-tab-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* Allergen warning box */
.diced-pp-allergen-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFF8E1;
    border: 1px solid #FFECB3;
    border-radius: 10px;
    padding: 16px 20px;
}
.diced-pp-allergen-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}
.diced-pp-allergen-box p {
    margin: 0;
    font-size: 14px;
    color: #92400E;
    line-height: 1.6;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .diced-pp-macro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .diced-pp-macro-num {
        font-size: 22px;
    }
    .diced-pp-tab-btn {
        font-size: 11px;
        padding: 12px 10px;
        letter-spacing: 0.3px;
    }
    .diced-pp-tab-content {
        padding: 18px 16px;
    }
    .diced-pp-tab-content p {
        font-size: 14px;
    }
    .single-product .product_title {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .diced-pp-macro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .diced-pp-macro-box {
        padding: 14px 8px;
    }
    .diced-pp-tab-buttons {
        flex-wrap: nowrap;
    }
}

/* Back to menu link */
.diced-pp-back {
    margin-top: 24px;
    text-align: center;
}
.diced-pp-back-link {
    display: inline-block;
    padding: 12px 28px;
    background: #1B4332;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.diced-pp-back-link:hover {
    background: #2D6A4F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,67,50,0.2);
}
