/* ======================================================= */
/* Customerdashboard.css - COMPACT MODAL VERSION */
/* ======================================================= */

/* 0. CSS Variables & Global Resets */
:root {
    /* Brand Colors */
    --primary-color: #004d40; 	 /* Dark Teal/Green (Header, Footer Bottom, Main Buttons) */
    --secondary-color: #17422f; 	 /* Darker Green (Hero/Footer Main) */
    --accent-color: #66bb6a; 	 /* Bright Green Accent (Highlights, Icons) */
    --highlight-color: #72F7BD; 	 /* Lighter Highlight */
    
    /* Neutral Colors */
    --text-light: #fff; 	 	 /* White */
    --text-dark: #333; 	 	 /* Dark Gray */
    --bg-light: #f0f0f0; 	 	 /* Light Gray Background (Main Body) */
    --border-light: #ccc; 	 	 /* Light Gray Border */
    
    --header-height: 65px; 	 	 /* Fixed header height */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Added smooth scroll for anchor links (Single Page Look) */
html, body {
    scroll-behavior: smooth; 
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* Adjust padding-top based on fixed header height */
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ---------------------------------------------- */
/* Shopping Cart Badge Styles */
/* ---------------------------------------------- */

.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: bounce 0.5s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    80% {
        transform: translateY(-2px);
    }
}

.cart-badge.hidden {
    display: none;
}

.cart-page-link {
    transition: transform 0.2s ease;
}

.cart-page-link:hover {
    transform: scale(1.1);
}

/* ---------------------------------------------- */
/* Diamond Icon Styling - WHITE COLOR */
/* ---------------------------------------------- */
.diamond-link {
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

.diamond-link:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Diamond icon is now white */
.diamond-link .fa-diamond {
    color: var(--text-light); /* White color for diamond */
}

.diamond-link:hover .fa-diamond {
    animation: sparkle 0.6s ease-in-out;
    color: var(--accent-color); /* Change to accent color on hover */
}

@keyframes sparkle {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(1); }
}

/* ---------------------------------------------- */
/* Header icon tooltips (uses aria-label text)   */
/* ---------------------------------------------- */
.icon-links a { position: relative; }
.icon-links a::after {
    content: attr(aria-label);
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translate(-50%, -4px);
    background: var(--primary-color);
    color: var(--text-light);
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 2000;
}
.icon-links a::before {
    content: '';
    position: absolute;
    top: 118%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2001;
}
.icon-links a:hover::after,
.icon-links a:focus::after { opacity: 1; transform: translate(-50%, 0); }
.icon-links a:hover::before,
.icon-links a:focus::before { opacity: 1; }

/* ---------------------------------------------- */
/* 1. Header / Navigation Bar Styling */
/* ---------------------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.logo-container { display: flex; align-items: center; gap: 5px; color: var(--text-light); font-weight: 700; }
.logo-circle { width: 45px; height: 45px; background-color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.logo-circle img { max-width: 80%; height: auto; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-main { font-size: 24px; line-height: 1; margin-bottom: -4px; }
.logo-sub { font-size: 16px; line-height: 1; }

nav { display: flex; flex-grow: 1; justify-content: flex-end; align-items: center; padding: 0; margin: 0 40px 0 0; position: relative; z-index: 1000; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li { margin: 0 15px; font-size: 14px; font-weight: 500; }
nav ul li a { display: inline-block; padding-bottom: 5px; position: relative; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--accent-color); text-underline-offset: 4px; }

/* ACTIVE LINK STYLING (Controlled by JavaScript Scroll Spy) */
nav ul li a.active-link {
    font-weight: 700;
    border-bottom: 3px solid var(--accent-color);
    text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-bar { display: flex; align-items: center; border: 1px solid var(--border-light); border-radius: 5px; overflow: hidden; background-color: var(--text-light); margin: 0 20px; }
.search-bar input { border: none; padding: 8px 10px; outline: none; width: 200px; font-size: 14px; color: var(--text-dark); }
.search-bar button { background-color: var(--bg-light); border: none; padding: 8px 10px; cursor: pointer; color: var(--text-dark); }
.search-bar button:hover { background-color: #ddd; }
.icon-links { display: flex; align-items: center; gap: 25px; font-size: 18px; color: var(--text-light); }
.icon-links a { transition: color 0.3s; }
.icon-links a:hover { color: var(--accent-color); }

/* Focus styles for accessibility */
.btn-primary:focus,
.category-btn:focus,
.search-bar input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ---------------------------------------------- */
/* 2. Hero Section Styling (HOME) */
/* ---------------------------------------------- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height)); 
    padding: 20px 20px 0 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden; 
    margin-bottom: 120px;
}
/* Background Image Container with Blur and Brightness */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px) brightness(0.4); 
    transform: scale(1.02); 
}

/* Overlay made transparent as the brightness filter is used */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color); 
    opacity: 0; 
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px; 
}

.hero-content h1 { font-size: 60px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.1; letter-spacing: 5px; }
.hero-content h2 { font-size: 28px; font-weight: 400; margin: 0 0 30px 0; color: var(--accent-color); letter-spacing: 2px; }
.hero-content p { font-size: 18px; line-height: 1.6; margin-bottom: 25px; padding: 0 50px; font-weight: 500; }
.warning-text { font-weight: 700; color: var(--highlight-color); font-style: italic; margin-top: 5px; }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ---------------------------------------------- */
/* 3. General Content Container (Features & Product) */
/* ---------------------------------------------- */

.main-content {
    min-height: auto;
    padding-top: 30px; 	 
    padding-left: 20px; 	 
    padding-right: 20px; 	 
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 20px; 
    font-weight: 500;
    padding: 8px 20px; 
    margin: 0 auto 30px auto; 
    color: var(--text-light);
    background-color: var(--primary-color);
    display: block;
    width: fit-content;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------- */
/* 4. Features Section Styling */
/* ---------------------------------------------- */

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.feature-card {
    background-color: rgba(0, 77, 64, 0.05); 
    border: 1px solid var(--primary-color); 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2); 
    width: 210px; 
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.4); 
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color); 
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 70px; 
}

.read-more-btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
}

/* Modal Styling */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    padding: 10px;
}
.modal-content { 
    background-color: var(--text-light); 
    margin: 2% auto; 
    padding: 20px; 
    border: 1px solid #888; 
    width: 90%; 
    max-width: 600px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    position: relative; 
    text-align: center; 
    animation-name: animatetop; 
    animation-duration: 0.4s; 
    max-height: 95vh;
    overflow-y: auto;
}
@keyframes animatetop { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }
.modal-content h2 { color: var(--primary-color); font-size: 24px; margin-top: 0; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; margin-bottom: 20px; }
.modal-content p { font-size: 16px; line-height: 1.6; color: var(--text-dark); text-align: left; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; position: absolute; top: 10px; right: 15px; }
.close-btn:hover, .close-btn:focus { color: var(--primary-color); text-decoration: none; cursor: pointer; }


/* ---------------------------------------------- */
/* 5. Product Section Styling */
/* ---------------------------------------------- */

/* Product Category/Filter Buttons */
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-btn {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-transform: uppercase;
}

.category-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Product List Grid */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual Product Card */
.product-card {
    background-color: var(--text-light);
    border: 2px solid var(--primary-color); /* Dark green borderline */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 77, 64, 0.15);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    opacity: 1; 
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 77, 64, 0.25);
    border-color: var(--accent-color);
}

.product-image-container {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: opacity 0.3s ease;
}

/* Image loading states */
.product-image-container img:not([src]),
.product-image-container img[src=""],
.product-image-container img[src*="undefined"] {
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.product-image-container img.loaded {
    animation: none;
}

/* Product Info */
.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category-detail {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
    text-transform: capitalize; 
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 16px; 
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    min-height: 40px;
    text-transform: uppercase;
}

.rating-stock-details {
    margin: 5px 0 15px 0;
    text-align: left;
    padding-left: 5px; 
}

.rating-stars {
    color: var(--accent-color); 
    font-size: 14px;
    margin-bottom: 5px;
}

.rating-stock-details p {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

.product-price-range {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-color); 
    margin-top: auto;
    margin-bottom: 0;
}

/* Search highlighting */
.search-highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
    background: var(--bg-light);
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border-light);
}

/* ---------------------------------------------- */
/* 6. Product Modal Styles - COMPACT VERSION */
/* ---------------------------------------------- */
.product-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 10px;
}

.product-modal-container {
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.product-modal-image {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 300px;
}

.product-modal-image img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.product-modal-info {
    flex: 1;
    padding: 25px;
    background: white;
    display: flex;
    flex-direction: column;
}

.product-modal-info .product-category-detail {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-modal-info h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-modal-info h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.1;
}

.product-modal-info h3 {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating Section - Compact */
.modal-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.modal-rating-stars {
    display: flex;
    gap: 3px;
}

.modal-rating-stars i {
    color: var(--accent-color);
    font-size: 16px;
}

#modalRatingValue {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.reviews-count {
    color: #666;
    font-size: 13px;
}

/* Price Section */
.modal-price-section {
    margin-bottom: 20px;
}

.modal-price-range {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
}

/* Description */
.modal-description {
    margin-bottom: 20px;
}

.modal-description p {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* ---------------------------------------------- */
/* Product Options Styling */
/* ---------------------------------------------- */

.product-options {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.option-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.option-select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.selected-price {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    margin: 15px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.quantity-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Enhanced Product Options Styling */
.option-group:last-of-type {
    margin-bottom: 0;
}

.option-select option {
    padding: 8px;
}

/* Style for when options are required but not selected */
.option-select:invalid {
    border-color: #ff4444;
    background-color: #fff5f5;
}

.option-select:valid {
    border-color: #66bb6a;
}

/* Color preview for selected colors */
.color-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* Specific color classes for preview */
.color-white { background-color: #ffffff; }
.color-black { background-color: #000000; }
.color-red { background-color: #ff0000; }
.color-blue { background-color: #0000ff; }
.color-green { background-color: #008000; }
.color-yellow { background-color: #ffff00; }
.color-gray { background-color: #808080; }
.color-red-oxide { background-color: #a52a2a; }
.color-off-white { background-color: #f8f8f8; }
.color-pastel { background-color: #ffd1dc; }
.color-custom { background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff); }

/* Size badge styling */
.size-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
    font-weight: 600;
}

/* Styles for when color selection is hidden */
.option-group[style*="display: none"] + .option-group {
    margin-top: 0;
}

/* Better spacing when only sizes are shown */
.product-options:has(.option-group[style*="display: none"]:first-child) {
    padding-top: 10px;
}

/* Price display states */
.selected-price.no-selection {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.selected-price.has-selection {
    background: var(--primary-color);
    color: white;
    border: none;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: column;
}

.modal-add-to-cart {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== COLLAPSIBLE REVIEWS SECTION ===== */
.reviews-section {
    margin-top: 20px;
    border-top: 2px solid #eee;
}

.reviews-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    margin-bottom: 0;
}

.reviews-toggle:hover {
    background: var(--secondary-color);
}

.reviews-toggle i {
    transition: transform 0.3s;
    font-size: 16px;
}

.reviews-toggle.collapsed i {
    transform: rotate(0deg);
}

.reviews-toggle.expanded i {
    transform: rotate(180deg);
}

.reviews-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #f9f9f9;
    border-radius: 0 0 6px 6px;
}

.reviews-content.expanded {
    max-height: 600px;
    overflow-y: auto;
}

.reviews-container {
    padding: 20px;
}

/* ---------------------------------------------- */
/* 7. Reviews Section Styles - COMPACT */
/* ---------------------------------------------- */
.reviews-section h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/* Add Review Form - Compact */
.add-review-form {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.add-review-form h4 {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 12px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-input span {
    font-size: 13px;
    color: #666;
}

.star-rating {
    display: flex;
    gap: 3px;
}

.star-rating i {
    color: #ddd;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
    color: var(--accent-color);
}

.add-review-form textarea,
.add-review-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}

.add-review-form textarea {
    resize: vertical;
    min-height: 60px;
}

.submit-review {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    font-size: 13px;
}

/* Reviews List - Compact */
.reviews-list {
    max-height: 300px;
    overflow-y: auto;
}

.review-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 13px;
}

.review-date {
    color: #666;
    font-size: 11px;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.review-rating i {
    color: var(--accent-color);
    font-size: 12px;
}

.review-text {
    color: #333;
    line-height: 1.4;
    font-size: 13px;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 15px;
    font-size: 13px;
}

/* Scrollbar for reviews list */
.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ---------------------------------------------- */
/* 8. Footer Styling - FIXED */
/* ---------------------------------------------- */
footer { 
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--secondary-color); 
    color: var(--text-light);
    margin-top: auto;
    margin-bottom: 0;
    padding: 0;
}
.footer-main-content { 
    display: flex; 
    justify-content: space-between; 
    padding: 40px 20px 20px 20px; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.footer-col { 
    flex: 1; 
    padding: 0 15px; 
    min-width: 200px; 
    box-sizing: border-box;
    margin-bottom: 20px;
}

.footer-col h3 { 
    font-size: 18px; 
    border-bottom: 1px solid var(--accent-color); 
    padding-bottom: 8px; 
    margin-bottom: 20px; 
    font-weight: 700; 
    color: var(--text-light); 
}

.footer-info { 
    max-width: 300px; 
}

.footer-info .logo-container { 
    margin-bottom: 20px; 
}

.footer-info .logo-container .logo-main { 
    font-size: 20px; 
}

.footer-info .logo-container .logo-sub { 
    font-size: 14px; 
}

.footer-info p { 
    font-size: 14px; 
    line-height: 1.6; 
    margin-top: 20px; 
    color: #ccc; 
}

.footer-links ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-links ul li { 
    margin-bottom: 8px; 
}

.footer-links a { 
    font-size: 14px; 
    color: #e0e0e0; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--accent-color); 
}

.footer-contact p { 
    font-size: 14px; 
    line-height: 1.8; 
    margin-bottom: 10px; 
    color: #ccc; 
}

.footer-contact i { 
    color: var(--accent-color); 
    margin-right: 10px; 
    width: 15px; 
    text-align: center; 
}

.footer-social { 
    text-align: left; 
}

.social-icons { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-start; 
}

.social-icons a { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    background-color: var(--primary-color); 
    color: var(--text-light); 
    font-size: 16px; 
    transition: background-color 0.3s; 
}

.social-icons a:hover { 
    background-color: var(--accent-color); 
}

.footer-bottom-bar { 
    width: 100%; 
    background-color: var(--primary-color); 
    padding: 12px 20px; 
    text-align: center; 
    font-size: 12px; 
    margin: 0;
    box-sizing: border-box;
}

/* ---------------------------------------------- */
/* 9. About Us Section Styling */
/* ---------------------------------------------- */

.about-us-container {
    padding-top: 20px; 
    padding-bottom: 80px;
    margin-top: 50px;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.about-text {
    flex: 2;
    padding-right: 20px;
}

.about-text h2 {
    color: var(--primary-color); 
    font-size: 17px;
    margin-top: 35px;
    margin-bottom: 8px;
}

.about-text p {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.about-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    max-width: 400px;
}

.about-image .img-wrapper {
    width: 100%;
    height: 180px; 
    margin-bottom: 20px; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.about-image .img-wrapper:hover {
    transform: scale(1.7);
    z-index: 100;
}
.about-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease-in-out; 
}

/* ---------------------------------------------- */
/* 10. Responsive Design */
/* ---------------------------------------------- */

/* Anchor Offset Fix (Para sa Fixed Header) */
#home-section,
#features-section,
#product-section,
#aboutus-section {
    scroll-margin-top: calc(var(--header-height) + 15px);
}

#product-section {
    padding-top: 0px;
    padding-bottom: 150px;
}

.product-page-main {
    margin-top: 65px;
}

/* Product Modal Responsive */
@media (max-width: 768px) {
    .product-modal-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .product-modal-image {
        padding: 15px;
        min-height: 200px;
    }
    
    .product-modal-image img {
        max-height: 180px;
    }
    
    .product-modal-info {
        padding: 20px;
    }
    
    .product-modal-info h1 {
        font-size: 20px;
    }
    
    .product-modal-info h2 {
        font-size: 18px;
    }
    
    .product-modal-info h3 {
        font-size: 14px;
    }
    
    .modal-rating-section {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-add-to-cart {
        width: 100%;
    }
    
    .reviews-section h3 {
        font-size: 16px;
    }
    
    .add-review-form {
        padding: 12px;
    }
    
    .reviews-list {
        max-height: 200px;
    }
    
    .product-options {
        padding: 12px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}

/* Medium screens */
@media (max-width: 1024px) {
    .product-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-main-content {
        gap: 20px;
    }
    
    .footer-col {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 900px) {
    .footer-col {
        flex: 1 1 100%;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    .about-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 45px; }
    .hero-content h2 { font-size: 22px; }
    .hero-content p { font-size: 16px; padding: 0 20px; }
    .features-grid { gap: 20px; }
    .feature-card { width: 45%; }
    
    .category-buttons {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
        min-height: auto;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar {
        width: 100%;
        margin: 0;
    }
    
    .search-bar input {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .feature-card { width: 80%; max-width: 350px; }
}

@media (max-width: 480px) {
    /* Header becomes static on small screens to prevent taking up too much space */
    header { 
        flex-direction: column; 
        padding: 15px; 
        height: auto; 
        position: static; 
    }
    body { 
        padding-top: 0; 
    } 
    /* Adjustments to scroll offset for the now-static header */
    #home-section, #features-section, #product-section, #aboutus-section {
        scroll-margin-top: 0; 
    }
    
    nav { margin: 10px 0; justify-content: center; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 10px; }
    .header-actions { flex-direction: column; gap: 15px; }
    .search-bar { margin: 0; width: 100%; }
    .search-bar input { width: 100%; }
    .icon-links { width: 100%; justify-content: space-around; }

    .hero-section {
        height: auto;
        min-height: 80vh;
        margin-bottom: 80px;
    }
    .hero-content h1 { font-size: 30px; }
    .hero-content h2 { font-size: 18px; }
    .hero-content p { padding: 0 5px; }

    .product-list-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main-content { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 20px 20px 20px;
    }
    .footer-col { padding: 15px 0; min-width: auto; }
    .footer-social .social-icons { justify-content: center; }
    .footer-info .logo-container { justify-content: center; }
    .modal-content { width: 95%; margin: 5% auto; }
    
    .about-us-container {
        padding-bottom: 60px;
        margin-top: 30px;
    }
    
    .add-review-form {
        padding: 10px;
    }
    
    .rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .product-modal-content {
        width: 98%;
        margin: 2% auto;
    }
}
#aboutus-section {
    padding-bottom: 0 !important;
}
.about-us-container {
    padding-bottom: 0 !important;
}
/* Simple center fix */
.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* ----------------------------- */
/* Enhanced Modal & Shadow UI   */
/* ----------------------------- */
/* Backdrop blur + darken for focus */
.simple-modal {
    display: none; /* toggled via inline style by JS */
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px) brightness(0.6);
    padding: 24px;
    overflow: auto;
}
.simple-modal .modal-content {
    max-width: 640px;
    margin: 6% auto;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease;
    transform: translateY(0);
    position: relative;
}
.simple-modal .modal-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45), 0 8px 18px rgba(0,0,0,0.25);
}

/* Close button (for simple modal) */
.simple-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #777;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    transition: color 0.18s, transform 0.18s;
}
.simple-modal .modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Link hover visual cue in footer (subtle lift) */
.footer-links a {
    display: inline-block;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.footer-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Smaller screens modal adjustments */
@media (max-width: 600px) {
    .simple-modal .modal-content { margin: 10% 12px; width: calc(100% - 24px); }
}

