/* ==========================================================================
   CSS VARIABLES & THEMING (Strictly Yellow Palette & Neutrals)
   ========================================================================== */
   :root {
    /* Primary Yellow Palette */
    --clr-yellow-50: #fefce8;
    --clr-yellow-100: #fef9c3;
    --clr-yellow-200: #fef08a;
    --clr-yellow-300: #fde047;
    --clr-yellow-400: #facc15;
    --clr-yellow-500: #eab308;
    --clr-yellow-600: #ca8a04;
    --clr-yellow-700: #a16207;
    --clr-yellow-800: #854d0e;
    --clr-yellow-900: #713f12;

    /* Neutrals */
    --clr-white: #ffffff;
    --clr-gray-50: #f9fafb;
    --clr-gray-100: #f3f4f6;
    --clr-gray-200: #e5e7eb;
    --clr-gray-300: #d1d5db;
    --clr-gray-400: #9ca3af;
    --clr-gray-500: #6b7280;
    --clr-gray-600: #4b5563;
    --clr-gray-700: #374151;
    --clr-gray-800: #1f2937;
    --clr-gray-900: #111827;
    --clr-black: #000000;

    /* Functional Colors */
    --bg-main: var(--clr-yellow-50);
    --bg-card: var(--clr-white);
    --text-main: var(--clr-gray-900);
    --text-muted: var(--clr-gray-500);
    --accent-color: var(--clr-yellow-500);
    --accent-hover: var(--clr-yellow-600);
    --border-color: var(--clr-yellow-200);
    --focus-ring: var(--clr-yellow-400);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(202, 138, 4, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(202, 138, 4, 0.1), 0 2px 4px -1px rgba(202, 138, 4, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(202, 138, 4, 0.1), 0 4px 6px -2px rgba(202, 138, 4, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(202, 138, 4, 0.15), 0 10px 10px -5px rgba(202, 138, 4, 0.04);
    --shadow-glow: 0 0 20px rgba(234, 179, 8, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-yellow-400) 0%, var(--clr-yellow-600) 100%);
    --grad-subtle: linear-gradient(180deg, var(--clr-white) 0%, var(--clr-yellow-50) 100%);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);

    /* Typography */
    --font-family: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --trans-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--trans-fast);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--clr-yellow-50);
}
::-webkit-scrollbar-thumb {
    background: var(--clr-yellow-300);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-yellow-400);
}

/* ==========================================================================
   GLOBAL DECORATIVE BACKGROUNDS
   ========================================================================== */
.page-bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.decor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--clr-yellow-200);
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--clr-yellow-300);
    bottom: -20%;
    left: -10%;
    animation-delay: -5s;
    opacity: 0.3;
}

.decor-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--clr-yellow-200) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-yellow-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--trans-normal);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    flex-shrink: 0;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-yellow-600);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--trans-normal);
}

.site-header:hover .brand-logo::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-title-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.header-main-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-gray-800);
    text-align: center;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-meta {
    flex-shrink: 0;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--clr-gray-900);
    color: var(--clr-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */
.site-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5rem;
}

.site-main > section {
    width: 100%;
    min-width: 0;
}

.product-grid > *,
.review-body {
    min-width: 0;
}

/* ==========================================================================
   PRODUCT SECTION (HERO)
   ========================================================================== */
.product-section {
    width: 100%;
    animation: slide-up 0.8s ease-out forwards;
}

.product-card-glass {
    background: var(--grad-glass);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--clr-white) inset;
    border: 1px solid var(--clr-yellow-100);
    position: relative;
    overflow: hidden;
}

.product-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--grad-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* ==========================================================================
   CSS-ONLY GALLERY
   ========================================================================== */
.product-gallery-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Hide Radio Buttons */
.gallery-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Main Viewer */
.gallery-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--clr-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-yellow-100);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity var(--trans-slow), visibility var(--trans-slow), transform var(--trans-slow);
    z-index: 1;
}

.image-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Gallery Logic (Switching images) */
#img1:checked ~ .gallery-viewer .slide-1,
#img2:checked ~ .gallery-viewer .slide-2,
#img3:checked ~ .gallery-viewer .slide-3,
#img4:checked ~ .gallery-viewer .slide-4 {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Decorative overlays in viewer */
.viewer-glare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 10;
    animation: shine 6s infinite;
    pointer-events: none;
}

/* Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumb-label {
    cursor: pointer;
    display: block;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all var(--trans-normal);
}

.thumb-inner {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--clr-white);
    border: 2px solid transparent;
    border-radius: inherit;
    padding: 0.25rem;
    transition: all var(--trans-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.thumb-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--clr-yellow-500);
    opacity: 0;
    mix-blend-mode: color;
    transition: opacity var(--trans-normal);
}

/* Thumbnail Hover states */
.thumb-label:hover .thumb-inner {
    border-color: var(--clr-yellow-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Thumbnail Active Logic */
#img1:checked ~ .gallery-thumbnails label[for="img1"] .thumb-inner,
#img2:checked ~ .gallery-thumbnails label[for="img2"] .thumb-inner,
#img3:checked ~ .gallery-thumbnails label[for="img3"] .thumb-inner,
#img4:checked ~ .gallery-thumbnails label[for="img4"] .thumb-inner {
    border-color: var(--clr-yellow-500);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   PRODUCT INFORMATION (RIGHT SIDE)
   ========================================================================== */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 2rem;
}

.product-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--clr-gray-900);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    position: relative;
}

.product-divider {
    height: 4px;
    width: 60px;
    background: var(--grad-primary);
    border-radius: 2px;
}

/* Neutral Badge for SEO Keywords */
.health-vitality-badge {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--clr-yellow-50);
    border: 1px solid var(--clr-yellow-200);
    border-left: 4px solid var(--clr-yellow-500);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    color: var(--clr-yellow-600);
    background: var(--clr-yellow-100);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text p {
    font-size: 0.95rem;
    color: var(--clr-gray-700);
    line-height: 1.5;
}

.badge-text strong {
    color: var(--clr-yellow-800);
}

/* Details List */
.product-details {
    background: var(--clr-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-gray-100);
}

.details-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--clr-gray-700);
    line-height: 1.7;
    position: relative;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--clr-yellow-200);
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* CSS-drawn Checkmark Icon for lists */
.item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--clr-yellow-100);
    position: relative;
    margin-top: 0.25rem;
}

.item-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    border: solid var(--clr-yellow-600);
    border-width: 0 2px 2px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

.item-content strong {
    color: var(--clr-gray-900);
    font-weight: 600;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    position: relative;
    margin: 5rem 0;
    padding: 5rem 2rem;
    background: var(--clr-yellow-100);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-yellow-200);
}

.cta-background-fx {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 150%, var(--clr-yellow-300) 0%, transparent 50%),
                      radial-gradient(circle at 80% -50%, var(--clr-white) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--clr-gray-700);
    margin-bottom: 3rem;
}

.cta-button-wrapper {
    display: inline-block;
    position: relative;
}

/* Glowing background behind button */
.cta-button-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--grad-primary);
    filter: blur(20px);
    opacity: 0.5;
    border-radius: var(--radius-full);
    animation: pulse-soft 3s infinite alternate;
}

.cta-main-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: var(--grad-primary);
    color: var(--clr-white);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(202, 138, 4, 0.4);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.cta-main-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(202, 138, 4, 0.6);
}

.cta-main-btn:active {
    transform: translateY(1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

.btn-text, .btn-icon {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   REVIEWS SECTION (Amazon-Style but Refined)
   ========================================================================== */
.reviews-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reviews-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--clr-gray-900);
}

.reviews-decorative-line {
    width: 80px;
    height: 4px;
    background: var(--grad-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.review-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-yellow-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans-normal);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--trans-normal);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.review-card:hover::before {
    opacity: 1;
}

.review-layout {
    display: flex;
    gap: 1.5rem;
}

/* Sidebar (Avatar) */
.review-sidebar {
    flex-shrink: 0;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--clr-yellow-200);
    background-color: var(--clr-gray-100);
    box-shadow: var(--shadow-inner);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Body */
.review-body {
    flex-grow: 1;
}

.review-author-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--clr-gray-900);
}

.review-stars {
    color: var(--clr-yellow-500);
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.review-headline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-gray-800);
    margin-bottom: 0.5rem;
}

.review-meta {
    font-size: 0.875rem;
    color: var(--clr-gray-500);
    margin-bottom: 0.75rem;
}

.review-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.verified-badge {
    color: var(--clr-yellow-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    background: var(--clr-yellow-50);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-yellow-200);
}

.spec-divider {
    color: var(--clr-gray-300);
}

.spec-details {
    color: var(--clr-gray-600);
    font-weight: 500;
}

.review-text {
    font-size: 1rem;
    color: var(--clr-gray-700);
    line-height: 1.7;
}

.review-text p {
    margin-bottom: 0.75rem;
}

.review-text p:last-child {
    margin-bottom: 0;
}

/* Review Photo Attachment */
.review-attachment {
    margin-top: 1.25rem;
}

.attachment-frame {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--clr-gray-200);
    cursor: pointer;
    transition: border-color var(--trans-fast);
}

.attachment-frame:hover {
    border-color: var(--clr-yellow-400);
}

.attachment-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--clr-white);
    position: relative;
    margin-top: 5rem;
    padding-top: 4rem;
}

.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--grad-primary);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand .brand-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-gray-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    color: var(--clr-gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-yellow-500);
    transform: scaleX(0);
    transition: transform var(--trans-fast);
}

.footer-nav a:hover {
    color: var(--clr-yellow-700);
}

.footer-nav a:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
    background-color: var(--clr-gray-50);
    padding: 1.5rem;
    text-align: center;
    color: var(--clr-gray-400);
    font-size: 0.875rem;
    border-top: 1px solid var(--clr-gray-200);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -50px) rotate(10deg) scale(1.05); }
    66% { transform: translate(-20px, 20px) rotate(-5deg) scale(0.95); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0% { opacity: 0.4; transform: scale(0.98); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* ==========================================================================
   MEDIA QUERIES (Responsive Design)
   ========================================================================== */

/* Very small devices */
@media (max-width: 480px) {
    .header-main-title {
        display: none; /* Hide on very small screens to save space */
    }
    
    .product-card-glass {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-main-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .review-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .review-sidebar {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .review-author-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-gallery-wrapper {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .header-main-title {
        font-size: 0.875rem;
        white-space: normal;
        overflow: visible;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
}

/* Large Displays adjustments */
@media (min-width: 1440px) {
    html {
        font-size: 18px;
    }
}

/* ==========================================================================
   FINAL MOBILE OVERRIDES
   Keep this block last so tablet rules cannot override phone rules.
   ========================================================================== */
@media (max-width: 480px) {
    .header-container {
        padding: 0.875rem 1rem;
    }

    .header-main-title {
        display: none;
    }

    .site-main {
        padding: 2rem 0.75rem;
        gap: 3rem;
    }

    .product-card-glass {
        padding: 1.25rem;
    }

    .product-details,
    .review-card {
        padding: 1.25rem;
    }

    .cta-section {
        margin: 2rem 0;
        padding: 3rem 1.25rem;
    }
}