/* style.css - Modern Responsive Styles for Rahi Equestrian Category Pages */

/* Base Styles */
:root {
    --primary-color: #4a6f28; /* Equestrian green */
    --secondary-color: #8b5a2b; /* Leather brown */
    --accent-color: #d4af37; /* Gold accent */
    --light-color: #f8f5f0; /* Off-white */
    --dark-color: #333;
    --gray-color: #777;
    --light-gray: #eee;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --section-spacing: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navbar Styles */
header {
    background: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 2rem; /* Reduced from 1rem to 0.5rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    border-radius: 8px;
}

.company-name {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    font-weight: 600;
    color: var(--primary-color);
}

/* Desktop Menu Styles */
.desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 40px;
}

.desktop-menu a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--dark-color); /* Changed to darker color */
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
    opacity: 0.9; /* Added for better visibility */
}

/* Optional: Darken on hover */
.nav-toggle:hover .bar {
    background-color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(25, 25, 25, 0.97);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    width: 100%;
    text-align: center;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2 rem;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.mobile-menu-overlay.active .nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu li a {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    background: none;
    transition: background 0.2s, color 0.2s;
}

.nav-menu li a:hover {
    background: var(--accent-color);
    color: #fff;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s;
    z-index: 1001;
}

.close-menu:hover {
    color: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
}

/* Responsive Navbar */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 1.2rem;
    }
    nav ul {
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none; /* Hide desktop menu on mobile */
    }

    .nav-toggle {
        display: flex; /* Show toggle button */
    }

    nav {
        padding: 0.7rem 1rem;
        flex-direction: row; /* Keep nav items in a row */
        justify-content: space-between; /* Space between brand and toggle */
    }

    .nav-brand {
        margin: 0; /* Remove any margin */
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .mobile-menu-overlay {
        display: flex;
    }
}

@media (max-width: 576px) {
    .nav-menu li a {
        font-size: 1.3rem;
        padding: 0.7rem 1.2rem;
    }
    .close-menu {
        top: 1.2rem;
        right: 1.2rem;
        font-size: 2rem;
    }
    .logo img {
        height: 32px;
    }
    nav {
        padding: 0.7rem 0.5rem;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}
   
/* Add these variables if not already in your Style.css */
:root {
    --primary-color: #8B4513; /* Saddle Brown */
    --secondary-color: #6B8E23; /* Olive Drab */
    --white: #FFFFFF;
    --text-dark: #362C22;
}
/* Main Content Styles */
main {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Product Detail Layout */
.product-detail {
    display: flex;
    gap: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Product Gallery (Left Section) */
.product-gallery {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    width: 100%;
    /* Remove fixed height */
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f8f8f8;
}

.fade-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.fade-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Change from cover to contain */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-gallery img.active {
    opacity: 1;
    z-index: 1;
}

/* Product Info (Right Section) */
.product-info {
    flex: 1;
    max-width: 50%;  /* Set maximum width to 50% */
    padding-left: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 2rem;
    }

    .product-gallery,
    .product-info {
        max-width: 100%;
    }

    .gallery-main {
        aspect-ratio: 1; /* Square on mobile for better visibility */
    }

    .thumbnail-container {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        padding: 0.5rem 0;
    }

    .thumbnail {
        max-width: 60px;
    }
}

.product-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: var(--section-spacing);
}

/* Enhanced Gallery Styles */
.gallery-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none; /* Allow clicking through the container */
}

.gallery-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto; /* Re-enable clicking on buttons */
    opacity: 0;
}

.gallery-main:hover .gallery-nav button {
    opacity: 1;
}

.gallery-nav button:hover {
    background: #fff;
    transform: scale(1.1);
}

.gallery-nav button i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Hide navigation on very small screens */
@media (max-width: 360px) {
    .gallery-nav {
        display: none;
    }
}

/* Product Gallery Styles */
.product-gallery {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    width: 100%;
    /* Remove fixed height */
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f8f8f8;
}

.fade-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.fade-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Change from cover to contain */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-gallery img.active {
    opacity: 1;
    z-index: 1;
}

/* Thumbnail Container Styles */
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 100%;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail {
    aspect-ratio: 1; /* Square thumbnails */
    width: 100%;
    max-width: 70px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: contain;
    background-color: #f8f8f8;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 2rem;
    }

    .product-gallery,
    .product_info {
        max-width: 100%;
    }

    .gallery-main {
        aspect-ratio: 1; /* Square on mobile for better visibility */
    }

    .thumbnail-container {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        padding: 0.5rem 0;
    }

    .thumbnail {
        max-width: 60px;
    }
}

/* Add loading state and placeholders */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-info {
    flex: 1;
    max-width: 50%;  /* Set maximum width to 50% */
    padding-left: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }

    .product-gallery,
    .product-info {
        max-width: 100%;  /* Full width on mobile */
    }

    .product-info {
        padding-left: 0;
    }
}

.product-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: var(--section-spacing);
}

/* Enhanced Gallery Styles */
.gallery-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none; /* Allow clicking through the container */
}

.gallery-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto; /* Re-enable clicking on buttons */
    opacity: 0;
}

.gallery-main:hover .gallery-nav button {
    opacity: 1;
}

.gallery-nav button:hover {
    background: #fff;
    transform: scale(1.1);
}

.gallery-nav button i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Hide navigation on very small screens */
@media (max-width: 360px) {
    .gallery-nav {
        display: none;
    }
}

/* Product Gallery Styles */
.product-gallery {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    width: 100%;
    /* Remove fixed height */
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f8f8f8;
}

.fade-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.fade-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Change from cover to contain */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-gallery img.active {
    opacity: 1;
    z-index: 1;
}

/* Thumbnail Container Styles */
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 100%;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail {
    aspect-ratio: 1; /* Square thumbnails */
    width: 100%;
    max-width: 70px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: contain;
    background-color: #f8f8f8;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 2rem;
    }

    .product-gallery,
    .product_info {
        max-width: 100%;
    }

    .gallery-main {
        aspect-ratio: 1; /* Square on mobile for better visibility */
    }

    .thumbnail-container {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        padding: 0.5rem 0;
    }

    .thumbnail {
        max-width: 60px;
    }
}

/* Add loading state and placeholders */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Product Info Styles */
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1.5rem;
}

.product-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge.premium {
  background: #ffd700;
  color: #000;
}

.badge.bestseller {
  background: #ff4444;
  color: #fff;
}

/* Quick Overview Styles */
.quick-overview {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
}

.overview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* Enhanced Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.feature-grid li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Specification Links */
.product-spec-links {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.spec-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    background: #f8f8f8;
}

.spec-link:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.spec-link i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
    color: #666;
}

.spec-link small {
    color: #888;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* Care Instructions */
.care-instructions {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 8px;
}

.care-instructions ul {
  list-style: none;
  padding: 0;
}

.care-instructions li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  color: #666;
}

/* Enhanced CTA Section */
.product-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: #2c3e50;
  color: white;
}

.cta-button.secondary {
  background: white;
  border: 1px solid #2c3e50;
  color: #2c3e50;
}

/* Read More Button Styles */
.main-description {
    position: relative;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.hidden-description {
    transition: all 0.3s ease;
}

/* Optional: Add fade effect for long descriptions */
.main-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.main-description.expanded::after {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-spec-links {
    flex-direction: column;
  }

  .product-cta {
    flex-direction: column;
  }
}

@media (max-width: 1200px) {
    .fade-gallery {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 2rem;
    }
    
    .fade-gallery {
        height: 450px;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 1.5rem;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .fade-gallery {
        height: 350px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .product-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    main {
        padding: 0 1.5rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .fade-gallery {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-info h2 {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 1rem;
    }
}
/* Popup Styles - Enhanced UI */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(25, 25, 25, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(145deg, #ffffff, #f7f5f2);
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.popup-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.popup-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 1.05rem;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-color);
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.close-popup:hover {
    color: white;
    background-color: var(--primary-color);
    transform: rotate(180deg) scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Product Types */
.product-types {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.product-types h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
}

.product-types ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-left: 0;
}

.product-types li {
    list-style: none;
    margin: 0;
}

.type-link, .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    background-color: var(--light-gray);
    border: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

.type-link:hover, .read-more:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 111, 40, 0.2);
    border-color: var(--primary-color);
}

/* Product Specification Links */
.product-spec-links {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.spec-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    background: #f8f8f8;
}

.spec-link:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.spec-link i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
    color: #666;
}

.spec-link small {
    color: #888;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* Color Options Styles */
.color-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.color-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.color-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(74, 111, 40, 0.05);
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #eee;
  transition: var(--transition);
}

.color-option.selected .color-swatch {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.color-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-color);
}

/* Size Options Styles */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
  justify-content: center;
}
}

.size-option.selected {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Specification List Styles */
.spec-list {
  margin: 1.5rem 0;
  width: 100%;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-name {
  font-weight: 600;
  color: var(--primary-color);
}

.spec-value {
  color: var(--gray-color);
  text-align: right;
  max-width: 60%;
}

/* Enhanced Footer Styles */
.enhanced-footer {
    background: linear-gradient(to right, #2c3e50, #3d5a80);
    color: #fff;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Company Info Styles */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.company-description {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer Links Styles */
.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom Styles */
.footer-bottom {
    margin-top: 4rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
}

/* Remove these classes as they're no longer needed */
/* 
.footer-bottom p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}
*/

/* Update responsive styles */
@media (max-width: 768px) {
    .footer-bottom {
        padding: 1rem 2rem;
    }
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}