/* display_product.css - COMPLETE REFINED DESIGN */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #00a8a8;
    --primary-dark: #007878;
    --primary-light: #33c0c0;
    --primary-gradient: linear-gradient(135deg, #00a8a8, #008888);
    --secondary: #f59e0b;
    --accent: #7c3aed;
    --dark: #1e293b;
    --dark-gray: #334155;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --lighter-gray: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --danger: #e53e3e;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    background: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Home Button */
.home-button {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.home-button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 168, 0.25);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.25rem 0 1.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.breadcrumb a:hover {
    color: var(--primary);
    background: var(--lighter-gray);
}

.breadcrumb span {
    color: var(--dark);
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
}

.breadcrumb i {
    color: var(--light-gray);
    font-size: 0.75rem;
}

/* ==================== MOBILE LAYOUT ==================== */
/* Product Detail Container */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

/* Product Gallery - Mobile */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.main-image-container {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--light-gray);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    max-height: 500px;
}

.zoom-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.zoom-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--lighter-gray);
}

.thumbnails::-webkit-scrollbar {
    width: 4px;
}

.thumbnails::-webkit-scrollbar-track {
    background: var(--lighter-gray);
    border-radius: 10px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--white);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(0, 168, 168, 0.3);
}

/* Product Info - Mobile */
.product-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rating {
    color: var(--warning);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-count {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-status {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.low-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Price Container */
.price-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--lighter-gray);
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

.discount-price {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.5rem;
}

.discount-badge {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: white;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Product Highlights Write-up */
.product-highlights-writeup {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-left: 5px solid var(--warning);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.25rem 0;
}

.product-highlights-writeup h3 {
    color: #856404;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-highlights-writeup p {
    color: #664d03;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.product-highlights-writeup p:last-child {
    margin-bottom: 0;
}

/* Product Info Cards */
.product-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    border: 1px solid var(--light-gray);
}

.info-card-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lighter-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card-title i {
    color: var(--primary);
}

/* Product Meta Grid */
.product-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.meta-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.meta-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.meta-card-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-card-value {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
}

/* Product Highlights */
.product-highlights {
    margin: 1.5rem 0;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--white);
}

.product-highlights .section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.highlight-item:hover {
    background: var(--white);
    transform: translateX(3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.highlight-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.highlight-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Specifications */
.specifications-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.spec-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.spec-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    min-width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-label::before {
    content: '•';
    color: var(--primary);
    font-size: 1.25rem;
}

.spec-value {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 168, 168, 0.1);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.btn {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 168, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 168, 0.3);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 168, 0.3);
}

/* Product Tabs */
.product-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
    overflow-x: auto;
    scrollbar-width: none;
}

.product-tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-button:hover {
    color: var(--primary);
    background: var(--lighter-gray);
}

.tab-button.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    background: rgba(0, 168, 168, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Technical Specifications Enhanced Styles */
.technical-specs-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--light-gray);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lighter-gray);
}

.section-title {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
}

.technical-specs-content {
    line-height: 1.6;
}

.tech-spec-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lighter-gray);
    transition: var(--transition);
}

.tech-spec-item:hover {
    background: var(--lighter-gray);
}

.tech-spec-item:last-child {
    border-bottom: none;
}

.spec-bullet {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.spec-number {
    color: var(--primary);
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 2rem;
    display: inline-block;
}

.tech-spec-row {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lighter-gray);
    flex-wrap: wrap;
}

.tech-spec-row:last-child {
    border-bottom: none;
}

.tech-spec-key {
    font-weight: 600;
    color: var(--dark);
    min-width: 180px;
    flex-shrink: 0;
    padding-right: 1rem;
}

.tech-spec-value {
    color: var(--dark-gray);
    flex: 1;
    line-height: 1.5;
}

.tech-spec-text {
    padding: 0.75rem 0;
    color: var(--dark-gray);
    line-height: 1.6;
}

.tech-spec-section-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lighter-gray);
    font-weight: 600;
}

.tech-spec-section-title:first-child {
    margin-top: 0;
}

.tech-spec-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.tech-spec-spacer {
    height: 0.75rem;
}

.tech-spec-html {
    line-height: 1.6;
}

.tech-spec-html h1, .tech-spec-html h2, .tech-spec-html h3, .tech-spec-html h4 {
    color: var(--dark);
    margin: 1.25rem 0 0.75rem 0;
}

.tech-spec-html p {
    margin: 0.75rem 0;
}

.tech-spec-html ul, .tech-spec-html ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

.tech-spec-html li {
    margin: 0.3rem 0;
}

.no-specs-message {
    background: var(--lighter-gray);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--gray);
    border: 1px dashed var(--light-gray);
    margin: 1.5rem 0;
}

.no-specs-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--light-gray);
}

/* Product Description Styling */
.product-description {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

.description-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--dark);
    font-size: 1rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Download Section */
.download-section {
    margin-top: 1.5rem;
}

.pdf-download-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--lighter-gray), #e9ecef);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.pdf-download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.pdf-icon {
    background: var(--danger);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.pdf-info {
    flex: 1;
}

.pdf-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1.2rem;
}

.pdf-info p {
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.no-downloads-message {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--lighter-gray);
    border-radius: var(--radius);
    border: 2px dashed var(--light-gray);
    margin-bottom: 1.5rem;
}

.no-downloads-message i {
    font-size: 3.5rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    display: block;
}

.no-downloads-message h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.no-downloads-message p {
    color: var(--gray);
}

.additional-resources {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--light-gray);
}

.additional-resources h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.5rem;
}

.resource-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--lighter-gray);
    border-radius: var(--radius-sm);
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.resource-list a:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.resource-list i {
    width: 20px;
    text-align: center;
}

/* Related Products */
.spotlight-section {
    margin: 3rem 0;
}

.related-section {
    margin: 2.5rem 0;
    overflow: hidden;
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.spotlight-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spotlight-view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-light);
}

.spotlight-view-all:hover {
    background: var(--primary);
    color: var(--white);
}

.related-slider {
    position: relative;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.related-card {
    flex: 0 0 25%;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.related-card img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.related-card h4 {
    margin: 0.75rem 0 0.3rem;
    font-size: 1rem;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--dark);
}

.related-card p {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.slider-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.slider-btn:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
    transform: none;
}

.spotlight-view-description {
    margin-top: 0.75rem;
    text-align: center;
}

.view-description-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 250px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.view-description-btn:hover {
    background: rgba(0, 168, 168, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.view-description-btn i {
    font-size: 0.85rem;
}

/* Alert Styles */
.cart-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

.alert-success {
    background-color: var(--success);
}

.alert-error {
    background-color: var(--danger);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: var(--radius);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.cart-notification.show {
    display: flex;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-icon {
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary);
}

/* Installer Price Note */
.installer-price-note {
    position: absolute;
    bottom: 10px;
    right: -25px;
    background: var(--info);
    color: #fff;
    padding: 4px 36px;
    font-size: 0.7rem;
    font-weight: 600;
    transform: rotate(-45deg);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
    pointer-events: none;
    transition: var(--transition);
}

.installer-price-note::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
    opacity: 0.5;
    z-index: -1;
}

/* ==================== DESKTOP LAYOUT (768px and up) ==================== */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .product-detail {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 2.5rem;
        margin-bottom: 3.5rem;
        align-items: start;
    }
    
    .product-gallery {
        position: sticky;
        top: 2rem;
        display: grid;
        grid-template-columns: 90px 1fr;
        gap: 1.25rem;
        height: fit-content;
    }
    
    .thumbnails {
        flex-direction: column;
        max-height: 450px;
        overflow-y: auto;
        padding: 0;
        gap: 0.75rem;
    }
    
    .thumbnail {
        width: 100%;
        height: 80px;
        min-width: auto;
    }
    
    .main-image-container {
        aspect-ratio: 1/1;
        padding: 1.5rem;
    }
    
    .product-info {
        padding: 2rem;
        border-radius: var(--radius-xl);
    }
    
    .product-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .product-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .btn {
        padding: 1.125rem 1.75rem;
        font-size: 1rem;
    }
    
    .product-tabs {
        margin: 3.5rem 0 1.75rem;
        justify-content: flex-start;
    }
    
    .tab-button {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .tab-content {
        padding: 2rem;
    }

    .tech-spec-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .tech-spec-key {
        min-width: 180px;
        width: auto;
    }

    .pdf-download-card {
        flex-direction: row;
        text-align: left;
    }

    .pdf-icon {
        margin-right: 1.5rem;
        margin-bottom: 0;
    }

    .btn-download {
        width: auto;
    }
}

/* ==================== LARGE DESKTOP LAYOUT (1024px and up) ==================== */
@media (min-width: 1024px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 3rem;
    }
    
    .product-detail {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3.5rem;
    }
    
    .product-gallery {
        grid-template-columns: 100px 1fr;
        gap: 1.5rem;
    }
    
    .thumbnail {
        height: 90px;
    }
    
    .main-image-container {
        aspect-ratio: 1/1;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-info {
        padding: 2.5rem;
    }
    
    .price-container {
        padding: 1.25rem;
    }
    
    .discount-price {
        font-size: 1.75rem;
    }
    
    .product-meta-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spec-item {
        flex-direction: row;
        align-items: center;
    }
    
    .spec-label {
        min-width: 140px;
    }
    
    .spec-value {
        padding-left: 0;
    }
    
    .quantity-selector {
        padding: 1.5rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    
    .spotlight-header h2 {
        font-size: 1.75rem;
    }
    
    .product-tabs {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }

    .related-card {
        flex: 0 0 25%;
    }

    .related-card img {
        height: 150px;
    }
}

/* ==================== EXTRA LARGE DESKTOP (1200px and up) ==================== */
@media (min-width: 1200px) {
    .container {
        padding: 0 4rem;
    }
    
    .product-detail {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
    
    .product-gallery {
        grid-template-columns: 110px 1fr;
    }
    
    .thumbnail {
        height: 95px;
    }
    
    .product-title {
        font-size: 2.125rem;
        line-height: 1.25;
    }
    
    .product-info {
        padding: 3rem;
    }
    
    .price-container {
        padding: 1.5rem;
    }
    
    .discount-price {
        font-size: 1.875rem;
    }
    
    .product-highlights-writeup {
        padding: 1.75rem;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .highlight-item {
        padding: 1.25rem;
    }
    
    .action-buttons {
        gap: 1.5rem;
    }
    
    .btn {
        padding: 1.25rem 2rem;
        font-size: 1.05rem;
    }
    
    .product-tabs {
        margin: 4rem 0 2rem;
    }
    
    .tab-button {
        padding: 1.25rem 2.5rem;
    }
    
    .tab-content {
        padding: 2.5rem;
        margin-bottom: 3.5rem;
    }

    .related-card {
        flex: 0 0 25%;
    }
}

/* ==================== MOBILE RESPONSIVE OVERRIDES ==================== */
@media (max-width: 768px) {
    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .tech-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .tech-spec-key {
        min-width: auto;
        width: 100%;
        padding-right: 0;
        margin-bottom: 0.2rem;
    }

    .tech-spec-value {
        width: 100%;
    }

    .tech-spec-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .spec-bullet, .spec-number {
        margin-right: 0;
        margin-bottom: 0.3rem;
    }

    .related-card {
        flex: 0 0 33.333%;
    }
    
    .related-card img {
        height: 120px;
    }
    
    .related-card h4 {
        font-size: 0.9rem;
        height: 2.2rem;
    }

    .view-description-btn {
        width: 65%;
        margin: 0 auto;
        display: inline-flex;
    }

    .technical-specs-section {
        padding: 1rem;
    }

    .installer-price-note {
        font-size: 0.6rem;
        padding: 3px 28px;
        bottom: 8px;
        right: -22px;
    }

    .pdf-download-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .pdf-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .product-highlights-writeup {
        padding: 1.25rem;
    }
    
    .product-highlights-writeup p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        max-width: 100%;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .home-button {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .related-card {
        flex: 0 0 50%;
    }
    
    .related-card img {
        height: 100px;
    }
    
    .related-card h4 {
        font-size: 0.85rem;
        height: 2rem;
    }

    .spec-item {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .spec-label {
        min-width: auto;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .installer-price-note {
        font-size: 0.55rem;
        padding: 2px 22px;
        bottom: 6px;
        right: -20px;
    }

    .product-highlights-writeup h3 {
        font-size: 1rem;
    }
    
    .product-highlights-writeup p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .description-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .modal-content {
        width: 95%;
    }

    .close {
        top: 0.5rem;
        right: 1rem;
        font-size: 2rem;
    }

    .cart-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Focus styles for accessibility */
button:focus, a:focus, input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .home-button, .zoom-icon, .action-buttons, .product-tabs,
    .slider-controls, .cart-notification, .modal, .btn {
        display: none !important;
    }
    
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    body {
        background: white !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .product-info, .tab-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .related-card {
        break-inside: avoid;
    }
}