/* =========================================
   Product Detail Page Specific Styles
   ========================================= */

/* --- Mobile Navigation --- */
.mobile-nav-circle-btn {
    /* Often used with btn btn-nav-circle */
    /* Ensure existing classes are clean, but these are overrides */
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -18px;
    min-width: 18px;
    height: auto;
    padding: 2px 5px;
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    /* JS toggles this */
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    white-space: nowrap;
    line-height: 1;
}

/* --- Hero Slider (Mobile) --- */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0.5rem;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.hero-slider-arrow:hover {
    opacity: 1;
}

.hero-slider-arrow i {
    font-size: 2rem;
    color: #6c757d;
}

.slider-dot-main {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.slider-thumb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

/* --- Badges --- */
.badge-offer-gradient {
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    color: #000;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* --- Share Modal Grid --- */
.share-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.share-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-radius: 12px;
    text-decoration: none;
    background: #f8f9fa;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.share-social-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.share-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.share-social-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

/* --- Copy Link Section --- */
.copy-link-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-link-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #666;
    outline: none;
}

.copy-link-action-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Desktop Gallery --- */
.gallery-main-image-desktop {
    cursor: zoom-in;
    max-height: 600px;
    width: 100%;
    object-fit: contain;
    transition: opacity 0.2s;
}

/* --- Headings --- */
.product-title-main {
    font-weight: bold;
    color: var(--text-main, #1A1A1A);
    line-height: 1.2;
}

.product-title-mobile {
    font-size: 2rem;
}

.product-title-desktop {
    font-size: 2.5rem;
    line-height: 1.15;
}

.sku-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sku-badge-desktop {
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
}

/* --- Info Details --- */
.info-detail-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand-primary, rgb(26, 59, 115));
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.info-detail-title {
    color: var(--text-main);
    font-size: 0.9rem;
}

.info-detail-content {
    color: var(--text-muted);
    padding-left: 0.5rem;
    border-left: 2px solid var(--border, #E5E7EB);
}

/* --- Desktop Tabs --- */
.product-tabs-modern {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.modern-tabs-container {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.modern-tabs-container .nav-link {
    background: none;
    border: none;
    padding: 0 0 0.5rem 0;
    font-weight: 600;
    color: #6C757D;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 0;
}

.modern-tabs-container .nav-link:hover {
    color: var(--brand-primary, #003057);
}

.modern-tabs-container .nav-link.active {
    color: var(--brand-primary, #003057);
    border-bottom: 2px solid var(--brand-primary, #003057);
}

.rich-text-content {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* FIX: Force Mobile Hero Image to Contain */
.product-hero-mobile .hero-slide img,
.product-hero-mobile .product-hero-image-container img,
.product-hero-image-container img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 450px !important;
    /* Allow more height */
    aspect-ratio: 1/1;
    /* Ensure square aspect ratio logic if needed, but contain handles it */
}