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

/* Anchor positioning for section links */
.collection-anchor,
.category-anchor {
    display: block;
    position: relative;
    top: -120px;
    /* Adjust based on header height */
    visibility: hidden;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary,
.btn-place-order {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-primary:hover,
.btn-place-order:hover {
    background-color: #333;
    border-color: #333;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-white:hover {
    background-color: transparent;
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcement-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #777;
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icons a {
    margin-left: 20px;
    font-size: 18px;
}

.cart-count {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    margin-left: 5px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-color: #222;
    /* Fallback color */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Featured Collection */
.featured-collection {
    padding: 80px 5%;
}

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

.product-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    aspect-ratio: 3/4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* Primary image: visible by default */
.product-image img.img-primary {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Secondary image: hidden by default, shows on hover */
.product-image img.img-secondary {
    opacity: 0;
    transform: scale(1.05);
    z-index: 2;
}

.product-card:hover .product-image img.img-primary {
    opacity: 0;
    transform: scale(1.08);
}

.product-card:hover .product-image img.img-secondary {
    opacity: 1;
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: #000;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.category-content h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Product Categories and Filters */
.product-categories {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 60px 5%;
}

.category-filters {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.category-filters h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-filters ul {
    margin-bottom: 30px;
}

.category-filters ul li {
    margin-bottom: 10px;
}

.category-filters ul li a {
    font-size: 14px;
    color: #555;
    transition: color 0.3s ease;
}

.category-filters ul li a:hover,
.category-filters ul li a.active {
    color: #000;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.price-filter-container {
    padding: 10px 0;
}

.price-slider {
    height: 4px;
    position: relative;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 15px 0;
}

.price-slider .progress {
    height: 100%;
    left: 0;
    width: 100%;
    position: absolute;
    border-radius: 2px;
    background: #000;
}

.range-input {
    position: relative;
    height: 4px;
}

.range-input input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: -4px;
    background: none;
    pointer-events: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    height: 17px;
    width: 17px;
    border-radius: 50%;
    background: #000;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 2px solid #fff;
}

input[type="range"]::-moz-range-thumb {
    height: 17px;
    width: 17px;
    border: none;
    border-radius: 50%;
    background: #000;
    pointer-events: auto;
    -moz-appearance: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 2px solid #fff;
}

.price-range-display {
    text-align: center;
    margin: 15px 0 20px;
}

.price-limit {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.5px;
}

.btn-apply-filter {
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.btn-apply-filter:hover {
    background-color: transparent;
    color: #000;
}


.product-listing {
    width: 100%;
}

.accessories-categories .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 60px 5%;
}

/* Responsive Styles for Categories and Filters */
@media (max-width: 1024px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .accessories-categories .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .category-filters {
        margin-bottom: 30px;
    }

    .filter-groups {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .filter-group {
        flex: 1 1 45%;
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .categories {
        grid-template-columns: 1fr;
    }

    .accessories-categories .category-grid {
        grid-template-columns: 1fr;
    }

    .filter-group {
        flex: 1 1 100%;
    }
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f9f9f9;
}

.about-content {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Instagram Section */
.instagram {
    padding: 80px 5%;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

/* Newsletter Section */
.newsletter {
    background-color: #f2f2f2;
    padding: 80px 5%;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.newsletter-form button {
    border-radius: 0;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #ccc;
}

.footer-column ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 18px;
    color: #fff;
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 24px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #999;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    padding: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-menu {
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-account-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-account-links a {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}