/* Core Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
a {
    text-decoration: none;
      color: #658a15;
     transition: color 0.2s ease;
}

a:hover {
  color: #64c0f5;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2b3a2f; /* Camo Dark Pine Forest */
    background-color: #f4f1ea; /* Camo Desert Tan/Off-white */
    line-height: 1.6;
}

.logo a {
  color: #f4f1ea;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Header Component */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #3e4a3d; /* Camo Deep Olive Muted */
    border-bottom: 2px solid #556b2f; /* Dark Olive Drab */
}

.logo {
    color: #f4f1ea; /* Desert Tan Text */
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links a {
    text-decoration: none;
    color: #f4f1ea; /* Pale Khaki */
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f4f1ea; /* High contrast hover */
}
/* Mobile Navigation Responsive Fix */
@media (max-width: 600px) {
    .store-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 10px;
        text-align: center;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.9rem;
    }


}


/* Hero Component */
.hero-section {
    background-color: #4b5340; /* Classic Camo Dull Green */
    padding: 30px 15px;
    text-align: center;
    border-bottom: 4px solid #2b3a2f;
}

.hero-content h1 {
    color: #f4f1ea;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #c2ba9d; /* Khaki text */
    margin-bottom: 25px;
}

/* Grid & Cards Systems */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2b3a2f;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(62, 74, 61, 0.15);
}

/* Updated Camo Palette Background Placeholders for Product Images */
.product-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}
.placeholder-1 { background-color: #3e4a3d; } /* Deep Olive */
.placeholder-2 { background-color: #8b8c74; } /* Sage Camo */
.placeholder-3 { background-color: #556b2f; } /* Dark Olive Drab */
.placeholder-4 { background-color: #c2ba9d; } /* Khaki Earth */

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2b3a2f;
}
/* Image Container Aspect Ratio */
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #f4f4f4;
}

/* Styles for actual <img> elements inside containers */
.product-image-container img.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use 'cover' to fill completely, or 'contain' to fit whole image */
    display: block;
    transition: transform 0.2s ease;
}

/* Standalone div placeholders fallback */
div.product-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

/* Subtle zoom effect on card hover */
.product-card:hover .product-image {
    transform: scale(1.04);
}

img {
  max-width: 100%;
}
.price {
    font-weight: 700;
    color: #556b2f; /* Accent Olive Green */
    margin-bottom: 15px;
}

/* Button UI Components */
.btn-primary {
    display: inline-block;
    background-color: #2b3a2f; /* Dark Jungle Green */
    color: #f4f1ea;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #556b2f; /* Switches to brighter olive */
}

.btn-secondary {
    width: 100%;
    background-color: transparent;
    color: #2b3a2f;
    border: 2px solid #2b3a2f;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #2b3a2f;
    color: #f4f1ea;
}

/* Footer Component */
.store-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #1c241e; /* Near Black Woodland Charcoal */
    color: #8b8c74;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 3px solid #3e4a3d;
}

/* Filter Controls Layout */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

/* Base Filter Button Styling */
.filter-btn {
    background-color: #f4f4f4;
    color: #654321;
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.collection-filters {
  width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}


.filter-btn.collection-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #654321;
    text-decoration: none;
}

.filter-btn.collection-btn:hover {
    background-color: lightyellow;
    color: #654321;
}
/* Hover & Active States */
.filter-btn:hover {
    background-color: lightyellow;
}
.filter-btn.collection-btn.active {
  background-color: #2b3a2f; /* Dark Jungle Green */
  color: #f4f1ea;
    font-weight: 700;
}


.filter-btn.active {
  background-color: #2b3a2f; /* Dark Jungle Green */
  color: #f4f1ea;
}

/* Basic Grid Setup for Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.hero-section img {
  max-width: 100px;
}
.product-image img {
    max-width: 100%;
}
/* Card Slider Overlay */
/* Container forces square aspect ratio and hides overflow */
.card-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f4f4f4;
}

/* Hide all slider images by default using direct class specificity */
.card-slider-container img.card-slide-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Display only the single active image */
.card-slider-container img.card-slide-img.active {
    display: block;
}

/* Arrow controls positioned over the image */
.card-slider-container .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(43, 58, 47, 0.3);
    color: #ffffff;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    border-radius: 3px;
    z-index: 10;
}

.card-slider-container .slider-arrow.prev { left: 8px; }
.card-slider-container .slider-arrow.next { right: 8px; }

/* Compact Sizes Display */
.sizes-available {
    font-size: 0.85rem;
    color: #3e4a3d;
    margin-bottom: 12px;
}

.color-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #3e4a3d;
  margin-bottom: 12px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: inline-block;
}

.color-swatch.yellow { background-color: #f1c40f; }
.color-swatch.grey   { background-color: #a6a6a6; }
.color-swatch.lgrey   { background-color: #EBEBE9; }
.color-swatch.white   { background-color: #FFFFFF; }
.color-swatch.dgreen   { background-color: darkgreen; }
.color-swatch.army   { background-color: #626943;}
.color-swatch.blue   { background-color: blue;}
.color-swatch.sageblue { background-color: #9BB9AF;}
.color-swatch.sage { background-color: #95a08f;}
.color-swatch.pebble { background-color: #9a8479;}
.color-swatch.navy { background-color: #000080;}

label {
  color: #3e4a3d;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Product Page Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Gallery & Interactive Zoom */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zoom-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    cursor: zoom-in;
}

.zoom-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
}

/* Thumbnails */
.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid #d4ceb8;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: #2b3a2f;
}

/* Detail Form Controls */
.product-title {
    font-size: 2rem;
    color: #2b3a2f;
    margin-bottom: 10px;
}

.divider {
    border: 0;
    border-top: 1px solid #d4ceb8;
    margin: 20px 0;
}

.variant-selection {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-options-selector {
    display: flex;
    gap: 10px;
}

.color-options-selector .color-swatch {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.color-options-selector .color-swatch.active {
    outline: 2px solid #2b3a2f;
    outline-offset: 2px;
}

.size-dropdown {
    padding: 8px 12px;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    background-color: #ffffff;
    color: #2b3a2f;
    font-weight: 600;
}

.btn-add-cart {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    margin: 15px 0 30px 0;
}

/* Product Description Formatting */
.product-description h2 {
    font-size: 1.25rem;
    color: #2b3a2f;
    margin-bottom: 10px;
}

h2 {
  font-size: 1.25rem;
}

.product-description p {
    color: #3e4a3d;
    margin-bottom: 15px;
}

.product-description ul {
    padding-left: 20px;
    color: #3e4a3d;
}

.product-description li {
    margin-bottom: 5px;
}

p.ship {
  color:#f4f1ea;
  font-size: 0.8rem;
  font-weight: bold;
}

.buy-now-btn {
  display: inline-block;
  background-color: #658a15;
  color: #f4f1ea;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  margin-bottom: 20px;
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.buy-now-btn:hover {
  background-color: #64c0f5;
  color: white;
}

.buy-now-btn:active {
  transform: scale(0.98);
}


/* CSS: Premium font, exact circular geometry, and smooth transitions */
a.back-but {
  font-size: 32px;
  color: #658a15;
  text-decoration: none;
  font-weight: 900;
    position: relative;
 transition: transform 0.2s ease, color 0.2s ease;
 cursor: pointer;
}

a.back-but:hover {
      top: -2px;
  color: #4ad5ff; /* Yellow / Gold */
}

/* Layout grid for the related items section */
.related-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* The clickable related item link card */
.related-item-card {
  display: flex;
  flex-direction: column;
  text-decoration: none; /* Removes underline from link */
  color: #333333; /* Sets text color */
  transition: transform 0.2s ease;
}

/* Subtle hover effect for better UX */
.related-item-card:hover {
  transform: translateY(-2px);
}

/* Keeps the small image container constrained */
.related-image-container {
  width: 100%;
  aspect-ratio: 1 / 1; /* Forces a perfect square */
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 4px;
}

/* Forces image to fit nicely inside the box */
.related-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents image distortion */
}

/* Small, clean title text beneath the photo */
.related-product-title {
  margin: 10px 0 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}
