/* Product Page Modern V2 Styles */

:root {
    --primary-color: #1a2745;
    --secondary-color: #303c66;
    --accent-color: #e53824;
    --text-color: #333;
    --text-light: #777;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

body {
    background-color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Implemented modern Inter font */
}

/* Breadcrumb override if needed */
.breadcrumb-section {
    background-color: transparent;
    padding: 15px 0;
}

/* Main Product Section */
.product-main-section {
    padding-bottom: 60px;
}

.product-image-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.product-image-box img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.product-image-box:hover {
    cursor: zoom-in;
}

.product-image-box:hover img {
    transform: scale(2);
}

.product-details-box {
    padding-left: 20px;
}

.prod-meta-labels {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.prod-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
}

.prod-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.prod-short-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bulk-pricing-text {
    display: inline-block;
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
    background: rgba(39, 174, 96, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
}

/* Controls Row */
.prod-controls-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.control-group-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
    display: block;
}

.custom-qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    height: 45px;
    /* width: 110px; Removed for flex */
}

.custom-qty-btn {
    width: 30px;
    height: 100%;
    border: none;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-qty-btn:hover {
    background: #e0e0e0;
}

.custom-qty-val {
    width: 100%;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    outline: none;
}

.custom-select-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 45px;
    min-width: 140px;
    background: #fff;
    display: flex;
    align-items: center;
}

.custom-select-wrapper select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.custom-select-wrapper::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    font-size: 12px;
    color: #888;
    pointer-events: none;
}

/* Actions Row */
.prod-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.prod-primary-actions {
    display: flex;
    gap: 15px;
}

.btn-prod-primary {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    /* min-width: 180px; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-prod-primary:hover {
    background: #232d4b;
    color: #fff;
}

.btn-prod-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-prod-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-download-pdf {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    /* margin-left: 10px; */
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-download-pdf:hover {
    background: #fff0ef;
    color: #d6301e;
}

/* Sidebar Categories */
.related-cats-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.related-cats-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.related-cats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-cats-list li {
    margin-bottom: 12px;
}

.related-cats-list li a {
    color: var(--text-color);
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.related-cats-list li a:hover {
    color: var(--secondary-color);
    font-weight: 500;
}

.related-cats-list li a i {
    font-size: 12px;
    color: #ccc;
}

/* Brands Section */
.brands-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.brand-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s;
}

.brand-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Sticky Footer */
.sticky-prod-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-prod-footer.visible {
    transform: translateY(0);
}

.sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-prod-info h5 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
}

.sticky-prod-info span {
    font-size: 13px;
    color: var(--text-light);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: #25d366;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1010;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-50%) scale(1.1);
    color: #fff;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .product-details-box {
        padding-left: 0;
        margin-top: 30px;
    }

    .sticky-prod-info {
        display: none;
        /* Hide name on mobile sticky to save space or adjust */
    }

    .sticky-content {
        justify-content: flex-end;
        /* Just the button */
    }

    .sticky-content .btn-prod-primary {
        width: 100%;
    }

    .prod-actions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    .prod-primary-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .btn-prod-primary,
    .btn-prod-outline {
        flex: 1;
        width: auto;
        padding: 10px 15px;
        font-size: 14px;
        min-width: 0;
    }

    .rel-link-v3 {
        padding: 5px 0;
        width: 100%;
        text-align: center;
    }
}

/* Utilities */
@media (max-width: 576px) {
    .flex-nowrap-mobile {
        flex-wrap: nowrap !important;
    }

    .prod-controls-row {
        gap: 10px;
    }
}

/* Fix for phantom breadcrumb text */
.breadcrumb-item+.breadcrumb-item::before {
    content: '/' !important;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.breadcrumb-item a::before,
.breadcrumb-item a::after {
    content: none !important;
}