/* Global Styles */
:root {
    --primary: #1a1a1a;
    --secondary: #fdfdfd;
    --accent: #2d5f3f;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    padding-top: 70px;
    /* Space for fixed header */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 25px;
    text-align: left;
    color: #1a1a1a;
}

.featured-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    color: #1a1a1a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 6px 18px;
    font-size: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 15px;
    background: white;
    border: 2px solid var(--border);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Shop by Collection */
.collections {
    padding: 20px 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll due to negative margins */
}

.collection-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media (min-width: 992px) {
    .collection-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

.collection-card {
    position: relative;
    width: 80%;
    aspect-ratio: 9/11;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    .collection-card {
        width: 100%;
        margin-bottom: 80px;
    }
}

.collection-card:nth-child(odd) {
    align-self: flex-start;
    margin-left: -20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.collection-card:nth-child(even) {
    align-self: flex-end;
    margin-right: -20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

@media (min-width: 992px) {
    .collection-card:nth-child(odd) {
        margin-left: -50px;
    }

    .collection-card:nth-child(even) {
        margin-top: 150px;
        margin-right: -50px;
    }
}

.collection-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-info {
    position: relative;
    z-index: 2;
    padding: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.collection-title {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    background: white;
    color: black;
    padding: 8px 18px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Products Section */
.products {
    padding: 20px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.products-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -10px;
    /* Reduced negative margin to balance the edge gap */
    padding: 0 10px 20px;
}

.products-wrapper::-webkit-scrollbar {
    display: none;
}

.products-grid.horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
}

.products-grid.horizontal .product-card {
    flex: 0 0 calc((100% - (3 * 25px)) / 4);
    /* Exactly 4 boxes on PC */
    scroll-snap-align: start;
}

.products-grid.horizontal .product-category {
    display: none;
}

.product-card {
    background: white;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 1s ease;
}

.product-image .secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Auto Swipe Animation for Thumbnails */
@keyframes autoFade {

    0%,
    45% {
        opacity: 1;
    }

    55%,
    100% {
        opacity: 0;
    }
}

@keyframes autoFadeReverse {

    0%,
    45% {
        opacity: 0;
    }

    55%,
    100% {
        opacity: 1;
    }
}

.has-secondary .primary-img {
    animation: autoFade 6s infinite alternate ease-in-out;
}

.has-secondary .secondary-img {
    animation: autoFadeReverse 6s infinite alternate ease-in-out;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 15px 0;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.product-name {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    margin-bottom: 2px;
    font-weight: 600;
    color: #555;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.product-price {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #111;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 10px;
    font-weight: 400;
}

/* Footer Section Redesign */
.site-footer {
    background: #fff;
    color: #1a1a1a;
    padding: 60px 0 30px;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}

.footer-newsletter {
    max-width: 450px;
    margin: 0 auto 40px;
    text-align: center;
}

.footer-newsletter h2 {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.footer-newsletter p {
    color: #666;
    margin-bottom: 25px;
    font-size: 13px;
    line-height: 1.4;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-wrapper {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a;
}

.newsletter-input-wrapper input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.newsletter-input-wrapper button {
    background: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.newsletter-input-wrapper button:hover {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-bottom .copyright {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.footer-links {
    margin: 5px 0;
}

.footer-links a {
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-social {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.footer-social a {
    color: #1a1a1a;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-newsletter h2 {
        font-size: 26px;
    }

    .site-footer {
        padding: 40px 0 25px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .products-grid.horizontal {
        gap: 15px;
    }

    .products-grid.horizontal .product-card {
        flex: 0 0 calc((100% - 15px) / 2);
        /* Pulling closer to edges for balanced boxed look */
    }

    .product-name {
        font-size: 13px !important;
    }

    .product-price {
        font-size: 13px !important;
    }

    .featured-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .product-image {
        aspect-ratio: 4/5;
        height: auto;
    }

    .collection-card {
        width: 85%;
        border-radius: 40px;
    }

    .collection-card:nth-child(odd) {
        margin-left: -20px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .collection-card:nth-child(even) {
        margin-right: -20px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .collection-title {
        font-size: 12px;
        padding: 6px 15px;
    }
}