/* ========================================
   Aram Home Textiles - Main Stylesheet
   ======================================== */

/* ========================================
   1. CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    /* Colors */
    --primary-color: #2C3E50;
    --secondary-color: #E8C547;
    --notification-yellow: #F4D03F;
    --accent-color: #95A5A6;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --error-color: #E74C3C;
    --success-color: #27AE60;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure other media elements also don't overflow */
iframe, video, svg, object {
    max-width: 100%;
    height: auto;
}

/* Cap main structural blocks to viewport width */
main, header, footer, section, .container {
    max-width: 100%;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

/* ========================================
   2. BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--bg-white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-white);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========================================
   3. TOP BAR
   ======================================== */

.top-bar {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: var(--bg-white);
    font-size: 16px;
}

.top-bar-right a:hover {
    color: var(--secondary-color);
}

/* ========================================
   4. MAIN HEADER
   ======================================== */

.main-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    height: 50px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon, .user-icon {
    font-size: 20px;
    cursor: pointer;
}

.user-menu {
    position: relative;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--text-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    font-size: 24px;
}

.mobile-nav ul {
    padding: 20px;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    font-weight: 500;
}

/* ========================================
   5. HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--bg-white);
}

.hero-subtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Hero Controls */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-prev:hover, .hero-next:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

/* ========================================
   6. FEATURES SECTION
   ======================================== */

.features-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-dark);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   7. SECTION HEADERS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* ========================================
   8. CATEGORIES SECTION
   ======================================== */

.categories-section {
    padding: var(--section-padding);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px;
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.category-overlay span {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 18px;
    padding: 12px 30px;
    border: 2px solid var(--bg-white);
    border-radius: 4px;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--bg-white);
    font-size: 24px;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ========================================
   9. PRODUCTS SECTION
   ======================================== */

.featured-products, .recently-viewed {
    padding: var(--section-padding);
}

.recently-viewed {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: 1 column */
    gap: 20px;
    width: 100%;
}

/* Responsive breakpoints handled in responsive-fixes.css */

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-dark);
}

.product-title a:hover {
    color: var(--secondary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating i {
    color: #FFC107;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 14px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
}

/* ========================================
   10. PROMOTIONAL BANNER
   ======================================== */

.promo-banner {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.promo-item {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(44, 62, 80, 0.3) 100%);
}

.promo-text {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    color: var(--bg-white);
}

.promo-text h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 10px;
}

.promo-text p {
    font-size: 20px;
    margin-bottom: 25px;
}

/* ========================================
   11. TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    padding: var(--section-padding);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #FFC107;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-author h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   12. INSTAGRAM SECTION
   ======================================== */

.instagram-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.instagram-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.instagram-overlay i {
    color: var(--bg-white);
    font-size: 36px;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   13. FOOTER
   ======================================== */

.main-footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-column p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px !important;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info li i {
    margin-top: 3px;
    color: var(--secondary-color);
}

/* Newsletter */
.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background: var(--bg-white);
}

.newsletter-form button {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-5px);
}

/* ========================================
   14. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
    }
    
    .filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .sidebar-content {
        display: none;
    }
    
    .sidebar-content.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar-left span:last-child {
        display: none;
    }
    
    .hero-section {
        height: 450px;
    }
    
    .hero-content {
        height: 450px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 32px;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .toolbar-right {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    
    .sort-options {
        width: 100%;
    }
    
    .sort-options select {
        width: 100%;
    }
    
    .showing-results {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-content {
        height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .breadcrumb {
        font-size: 12px;
        gap: 6px;
        justify-content: center;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr; /* Mobile: 1 column */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .filter-toggle {
        font-size: 14px;
        padding: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar-widget h3 {
        font-size: 16px;
    }
}

/* Text Utilities */
.text-center {
    text-align: center;
}

/* ========================================
   15. PAGE HEADER & BREADCRUMB
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    padding: 60px 0;
    color: var(--bg-white);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   16. SHOP PAGE
   ======================================== */

.shop-section {
    padding: var(--section-padding);
    overflow-x: hidden;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 100%;
}

/* Shop Main Content Area */
.shop-main {
    min-width: 0; /* Prevents grid blowout */
    width: 100%;
    overflow-x: hidden;
}

/* Shop Sidebar */
.shop-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
    margin-bottom: 20px;
}

.sidebar-widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.search-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-dark);
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    color: var(--secondary-color);
    padding-left: 10px;
}

.category-list span {
    color: var(--text-light);
}

/* Filters */
.price-filter, .color-filter, .size-filter, .rating-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-option, .size-option, .rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
}

.promo-widget {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f39c12 100%);
    text-align: center;
    color: var(--text-dark);
}

.promo-content i {
    font-size: 36px;
    margin-bottom: 15px;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.sort-dropdown select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 72px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link:not(.disabled):hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ========================================
   17. PRODUCT DETAIL PAGE
   ======================================== */

.product-section {
    padding: var(--section-padding);
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 500px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--secondary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info-detail {
    padding: 20px 0;
}

.product-badge-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.badge-sale {
    background: var(--error-color);
    color: var(--bg-white);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 15px;
}

.product-rating-review {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rating-number {
    margin-left: 5px;
    font-weight: 600;
}

.review-link {
    color: var(--text-light);
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--error-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.product-features ul {
    margin-bottom: 30px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-features i {
    color: var(--success-color);
}

/* Product Options */
.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.color-options, .size-options {
    display: flex;
    gap: 10px;
}

.color-choice, .size-choice {
    cursor: pointer;
}

.color-choice input, .size-choice input {
    display: none;
}

.color-choice .color-swatch {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-choice.active .color-swatch {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--bg-white), 0 0 0 4px var(--primary-color);
}

.size-choice span {
    display: block;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.size-choice.active span {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Product Actions */
.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* Product Meta */
.product-meta {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.meta-item strong {
    min-width: 100px;
}

.in-stock {
    color: var(--success-color);
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item i {
    font-size: 24px;
    color: var(--secondary-color);
}

/* Product Tabs */
.product-tabs {
    margin: 60px 0;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.tab-pane h4 {
    font-size: 20px;
    margin: 25px 0 15px;
}

.tab-pane ul {
    list-style: disc;
    padding-left: 25px;
}

.tab-pane ul li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 15px;
}

.specs-table td:first-child {
    width: 40%;
    background: var(--bg-light);
}

/* Reviews */
.reviews-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.rating-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
}

.overall-rating {
    text-align: center;
}

.overall-rating .rating-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.overall-rating .stars {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 10px;
}

.overall-rating .stars i {
    font-size: 20px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-bar-item > span:first-child {
    min-width: 50px;
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: var(--secondary-color);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.review-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.review-info h4 {
    margin-bottom: 5px;
}

.review-info .stars {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
}

.review-info .stars i {
    font-size: 14px;
}

.review-date {
    font-size: 14px;
    color: var(--text-light);
}

.review-content h5 {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 30px;
}

/* ========================================
   18. CART PAGE
   ======================================== */

.cart-section {
    padding: var(--section-padding);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 96px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.empty-cart h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cart-table-wrapper {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: var(--bg-light);
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-info-cart {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-info-cart img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-category {
    font-size: 14px;
    color: var(--text-light);
}

.product-options-selected {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.price {
    font-size: 18px;
    font-weight: 600;
}

.subtotal {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-remove {
    color: var(--error-color);
    font-size: 20px;
}

.btn-remove:hover {
    color: #c0392b;
}

.cart-mobile {
    display: none;
}

.cart-actions {
    margin-top: 30px;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.summary-items {
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #e8f5e9;
    color: var(--success-color);
    border-radius: 4px;
    font-size: 14px;
    margin: 15px 0;
}

.summary-total {
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 20px;
    font-weight: 700;
}

.summary-total span:last-child {
    color: var(--primary-color);
    font-size: 24px;
}

.coupon-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.coupon-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.payment-methods {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.payment-methods p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.payment-icons i {
    font-size: 28px;
    color: var(--text-light);
}

.trust-badges-cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.trust-badges-cart .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.trust-badges-cart i {
    color: var(--success-color);
}

/* Continue with more styles... */
