:root {
    --color-bg: #E1E6E1;
    --color-carbon: #111111;
    --color-graphite: #383838;
    --color-dim-grey: #696969;
    --color-accent: #7A0016;
    --font-main: 'Montserrat', sans-serif;
    --max-width: 1400px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-carbon);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

main {
    flex: 1;
}

.hidden {
    display: none !important;
}

.active {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-banner {
    background-color: var(--color-carbon);
    color: var(--color-bg);
    text-align: center;
    padding: 8px 10px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-carbon);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10000;
    transition: var(--transition);
    border-radius: 2px;
    text-align: center;
    width: max-content;
    max-width: 90vw;
}

.toast.show {
    bottom: 30px;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 8px;
    animation: pulse 1.5s infinite alternate;
    text-align: center;
}

@keyframes pulse {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

#navbar {
    background: rgba(225, 230, 225, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 1002;
}

.logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.brand h1 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 6px;
    margin-top: 2px;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-carbon);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.btn-primary {
    background: var(--color-carbon);
    color: var(--color-bg);
    border: 1px solid var(--color-carbon);
    padding: 1.2rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    width: 100%;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-carbon);
}

.btn-primary-outline {
    background: transparent;
    color: var(--color-bg);
    border: 1px solid var(--color-bg);
    padding: 1rem 2rem;
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--color-bg);
    color: var(--color-carbon);
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-dim-grey);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--color-carbon);
}

.section-header {
    text-align: center;
    margin: 5rem 0 3rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.sub-header {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 8px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero {
    height: 85vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-bg);
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
}

.hero h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 12px;
    margin-bottom: 1rem;
    font-weight: 200;
}

.hero p {
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    font-size: 0.85rem;
}

.featured-section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.featured-card {
    cursor: pointer;
    text-align: center;
}

.featured-img-wrapper {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-dim-grey);
    margin-bottom: 1rem;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.featured-card h4 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-card span {
    font-size: 0.8rem;
    color: var(--color-dim-grey);
}

.ethos-section {
    padding: 6rem 2rem;
    background: var(--color-carbon);
    color: var(--color-bg);
}

.ethos-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ethos-content .sub-header {
    color: var(--color-dim-grey);
}

.ethos-content p {
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.ethos-content .btn-primary {
    background: transparent;
    border-color: var(--color-dim-grey);
    color: var(--color-bg);
    max-width: 300px;
    margin: 0 auto;
}

.ethos-content .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-carbon);
    border-color: var(--color-bg);
}

.newsletter-section {
    padding: 6rem 2rem;
    text-align: center;
}

.newsletter-section p {
    margin-bottom: 2rem;
    color: var(--color-graphite);
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--color-carbon);
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    outline: none;
    border-radius: 0;
}

.newsletter-form button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

.bio-container {
    max-width: 700px;
    margin: 8rem auto;
    text-align: center;
    padding: 0 2rem;
}

.bio-container h2 {
    letter-spacing: 5px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.bio-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-graphite);
    font-weight: 300;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

#search-bar {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--color-dim-grey);
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--color-carbon);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-radius: 0;
}

#search-bar:focus {
    border-bottom-color: var(--color-accent);
}

.product-grid {
    max-width: var(--max-width);
    margin: 0 auto 6rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem 1.5rem;
}

.product-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--color-dim-grey);
    margin-bottom: 1rem;
}

.product-img-primary,
.product-img-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.product-img-secondary {
    opacity: 0;
}

.product-card:hover .product-img-primary {
    opacity: 0;
}

.product-card:hover .product-img-secondary {
    opacity: 1;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.product-title {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-price {
    color: var(--color-dim-grey);
    font-size: 0.8rem;
}

.pdp-container {
    max-width: var(--max-width);
    margin: 2rem auto 6rem;
    padding: 0 2rem;
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.pdp-main-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: var(--color-dim-grey);
    margin-bottom: 1rem;
}

.pdp-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pdp-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 1px solid transparent;
    background-color: var(--color-dim-grey);
}

.pdp-thumbnail:hover,
.pdp-thumbnail.active {
    opacity: 1;
    border-color: var(--color-carbon);
}

.pdp-info-sticky {
    position: sticky;
    top: 100px;
}

.pdp-info h2 {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 300;
}

.pdp-price {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.pdp-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.pdp-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-graphite);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cart-container,
.checkout-container {
    max-width: 800px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: var(--color-dim-grey);
}

.cart-item-title {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cart-item-qty {
    color: var(--color-dim-grey);
    font-size: 0.75rem;
}

.remove-btn {
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    background: none;
    cursor: pointer;
    letter-spacing: 1px;
    padding: 5px;
}

.cart-summary {
    margin-top: 2rem;
    text-align: right;
}

.shipping-text {
    font-size: 0.75rem;
    color: var(--color-dim-grey);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.discount-text {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.total-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 1.5rem 0;
}

.checkout-btn {
    width: 100%;
    max-width: 300px;
    float: right;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.65rem;
    letter-spacing: 3px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Hamburger Menu Base Styles */
.hamburger {
    display: none;
    /* Hidden by default on desktop */
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-carbon);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pdp-info-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        /* Show on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .hamburger.toggle span {
        background: var(--color-carbon);
    }

    .hamburger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        padding: 0 1rem;
    }

    .product-info {
        flex-direction: column;
        gap: 2px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        position: relative;
    }

    .cart-item>div:nth-child(3) {
        /* Price and Remove button container */
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        padding-top: 10px;
        font-weight: 600;
        text-align: left;
    }

    .remove-btn {
        margin-top: 0;
    }

    .checkout-btn {
        max-width: 100%;
        float: none;
    }
}


.hide-scrollbar {
  /* Firefox */
  scrollbar-width: none;

  /* IE and Edge */
  -ms-overflow-style: none;
}

/* Chrome, Safari, and Opera */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}