/**
 * Product Premium Styles - Minimalist High-End
 * Ro Care Bharat
 */

/* Variables */
:root {
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-surface: #ffffff;
    --bg-subtle: #f9fafb;
    --primary-color: #0f172a;
    /* Dark Slate/Black for high-end look */
    --accent-color: #0066CC;
    /* Global Primary Blue */
    --success-color: #059669;
}

/* General Layout */
.product-detail-section {
    background-color: var(--bg-surface);
    padding-top: 1rem;
    padding-bottom: 5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Breadcrumbs (Minimal) */
.breadcrumb-wrapper {
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 3rem;
    /* Added space below */
    margin-bottom: 0;
}

.breadcrumb-wrapper .breadcrumb {
    justify-content: flex-start !important;
    /* Force Left Align */
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--text-main);
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--border-color);
}

/* Image Gallery (Clean) */
.main-image-container {
    background: #fff;
    border-radius: 4px;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    /* Removed heavy shadows/borders for cleaner look */
}

/* Thumbnails */
.product-thumbnail {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    opacity: 0.6;
    padding: 2px;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--text-main);
    opacity: 1;
}

/* Typography */
.product-title {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.product-category-link {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Pricing */
.price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
}

.original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: #eff6ff;
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Form Elements */
.quantity-control-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: fit-content;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-subtle);
}

.qty-input {
    border: none;
    width: 50px;
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    color: var(--text-main);
}

.qty-input:focus {
    outline: none;
}

/* Buttons */
.btn-action-primary {
    background-color: var(--accent-color);
    /* Blue */
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-weight: 500;
    padding: 14px 28px;
    transition: all 0.2s;
}

.btn-action-primary:hover {
    background-color: #004C99;
    /* Darker Blue */
    border-color: #004C99;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    /* Blue shadow */
}

.btn-action-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    padding: 14px 28px;
    transition: all 0.2s;
}

.btn-action-secondary:hover {
    border-color: var(--text-main);
    background-color: var(--bg-subtle);
}

/* Features */
.feature-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.feature-label {
    width: 40%;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-value {
    width: 60%;
    color: var(--text-main);
    font-weight: 500;
}

/* Trust Badges - Minimal Horizontal */
.trust-strip {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.trust-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
}

/* Tabs Clean */
.clean-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 0;
    margin-right: 2rem;
    font-weight: 500;
}

.clean-tabs .nav-link:hover {
    color: var(--text-main);
}

.clean-tabs .nav-link.active {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
    background: transparent;
}

.tab-content-clean {
    padding-top: 2rem;
}

/* ... Mobile Responsiveness rules ... */

/* =========================================
   Premium Product Catalog Styles
   ========================================= */

/* Product Card Premium */
.product-card-premium {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--text-main);
}

.product-image-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: var(--bg-subtle);
    overflow: hidden;
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: transform 0.5s ease;
}

.product-card-premium:hover .product-image-wrap img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Quick Actions Overlay (Optional Style) */
.product-actions-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    transition: bottom 0.3s ease;
}

.product-card-premium:hover .product-actions-overlay {
    bottom: 0;
}

.action-btn-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn-circle:hover {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.product-details {
    padding: 1.25rem;
}

.product-cat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.product-title-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-link:hover {
    color: var(--accent-color);
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.curr-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sidebar Styles */
.filter-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.filter-header {
    background: var(--bg-subtle);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.filter-body {
    padding: 1.25rem;
}

.filter-link {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
}

.filter-link:hover,
.filter-link.active {
    color: var(--accent-color);
    font-weight: 500;
}


/* Mobile Responsiveness */
@media (max-width: 991px) {
    .product-detail-section {
        padding-bottom: 3rem;
    }

    .product-title {
        font-size: 1.75rem;
        margin-top: 1rem;
    }

    .product-gallery {
        position: static !important;
        /* Unstick on mobile */
        margin-bottom: 2rem;
    }

    .feature-row {
        padding: 10px 0;
    }

    .feature-value {
        text-align: right;
    }
}

@media (max-width: 768px) {

    /* Breadcrumbs */
    .breadcrumb-wrapper {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    /* Trust Badges - Grid to 2x2 */
    .trust-strip {
        gap: 1rem;
        flex-wrap: wrap;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .trust-item {
        width: 45%;
        flex-grow: 1;
        background: var(--bg-subtle);
        padding: 10px;
        border-radius: 6px;
        justify-content: center;
    }

    /* Buttons */
    .d-flex.align-items-center.gap-3.mb-5 {
        flex-direction: column;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .quantity-control-group {
        width: 100%;
        justify-content: center;
        padding: 5px;
    }

    .btn-action-primary,
    .btn-action-secondary {
        width: 100%;
        padding: 12px;
    }

    /* Tabs */
    .clean-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start;
    }

    .clean-tabs .nav-link {
        margin-right: 1.5rem;
        padding-bottom: 0.5rem;
    }

    /* Typography adjustments */
    .price-tag {
        font-size: 1.75rem;
    }

    .original-price {
        font-size: 1rem;
    }
}