/* GLOBAL STYLES */
:root {
    --primary-background: #D2D2D2;
    --secondary-background: #BDBDBD;

    --primary-white: #E9E9E9;
    --secondary-white: #CDCDCD;

    --primary-black: #3c3c3e;

    --gray: #4D4D56;

    --blue: #20607F;
    --green: #3F603F;
    --orange: #ff9f0a;

    --success: #41F3AE;
    --warning: #FF1A61;

    --s-border: 6px;
    --default-border: 12px;
    --l-border: 24px;
    --max-border: 100px;
}
body {
    background-color: var(--primary-background);
    font-family: 'Roboto', sans-serif;
    color: var(--primary-black);
    font-size: 16px;
}
.section {
    min-height: auto;
    padding: 12px 0px 0px 0px;
}
.container {
    width: 100%;
    min-width: 812px;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}
@media screen and (min-width: 1920px) {
    .container {
        min-width: 1024px;
        max-width: 50%;
    }}
@media screen and (min-width: 1440px) {
    .container {
        min-width: 1024px;
        max-width: 50%;
    }}
@media screen and (max-width: 991px) {
    .container {
        min-width: 728px;
        max-width: 90%;
    }}
@media screen and (max-width: 767px) {
    .container {
        min-width: auto;
        max-width: 95%;
    }}
@media screen and (max-width: 478px) {
    .container {
        max-width: 95%
    }}
.button {
    margin-top: 12px;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    min-width: 120px;
    white-space: nowrap;
}

@media only screen and (max-width: 767px) {
    .button {
        font-size: 14px !important;
        min-width: 30px !important;
        padding: 7px 15px !important;
        line-height: 1.43 !important;
    }
}

.pill {
    background-color: var(--secondary-white);
    color: var(--gray);
    padding: 6px 16px;
    border-radius: var(--max-border);
    transition: background-color 0.5s cubic-bezier(.09, 1.2, .52, 1.1);
    cursor: pointer;
    white-space: nowrap;
}

.pill:hover {
    background-color: var(--primary-white);
    padding: 6px 16px;
    color: var(--primary-black);
    transition: background-color 0.1s cubic-bezier(.09, 1.2, .52, 1.1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

.h1.showcase {
    font-weight: 900;
    margin-bottom: 6px;
    font-size: 56px;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .h1.showcase {
        font-size: 48px;
    }
}

.tb.xl {
    font-size: 28px;
}

.tb.l {
    font-size: 24px;
}

.tb.m {
    font-size: 18px;
}

.tb {
    font-size: 16px;
}

.tb.xl.center {
    font-size: 28px;
    text-align: center;
}

.tb.l.center {
    font-size: 24px;
    text-align: center;
}

.tb.m.center {
    font-size: 18px;
    text-align: center;
}

.tb.center {
    font-size: 16px;
    text-align: center;
}

.p.user {
    margin-top: 6px;
    margin-bottom: 24px;
}

.red-span {
    color: var(--warning)
}

.orange-span {
    color: var(--orange)
}

.blue-span {
    color: var(--blue)
}

.green-span {
    color: var(--green)
}

.span-900 {
    font-weight: 900;
}

/* GLOBAL STYLES */

/* COMPONENTS */
.section.header {
    padding: 0px;
    position: relative;
    height: auto;
}

.header.content-wrapper {
    width: 100%;
    min-width: 812px;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--secondary-background);
    border-radius: var(--default-border);
    position: sticky;
    top: 12px;
    z-index: 1000;
    transition: none;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform, height, background-color;
}

@media screen and (min-width: 1440px) {
    .header.content-wrapper {
        min-width: 1024px;
        max-width: 50%;
    }
}

@media screen and (max-width: 991px) {
    .header.content-wrapper {
        min-width: 728px;
        max-width: 90%;
    }
}

@media screen and (max-width: 767px) {
    .header.content-wrapper {
        min-width: auto;
        max-width: 95%;
    }
}

.header.content {
    background-color: var(--primary-white);
    padding: 12px 24px 12px 12px;
    border-radius: var(--default-border);
    z-index: 1002;
    position: relative;
    transition: none;
    display: flex;
    justify-content: space-between;
}

.header.home-link {
    text-decoration-line: none;
}

.header.home-link:hover .header.wordmark-span {
    background-color: #3F603F;
}

.header.home-link:hover .header.logo {
    background-color: #3F603F;
}

.header.home-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header.logo {
    width: 48px;
    height: 48px;
    border-radius: var(--max-border);
    background-color: var(--orange);
    transition: background-color 0.25s ease;
}

.header.wordmark {
    font-weight: 900;
    font-size: 24px;
    line-height: 24px;
}

.header.wordmark-span {
    background-color: var(--orange);
    color: var(--primary-white);
    padding: 0px 3px;
    transition: background-color 0.25s ease;
}

.header.action-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon {
    color: var(--orange);
    margin-top: -5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    color: var(--green);
}

.profile-icon {
    color: var(--orange);
}

.profile-icon:hover {
    color: var(--green);
}

.header.pills {
    padding: 12px 24px;
    display: flex;
    padding-inline-start: 24px;
    margin-block-start: 0;
    margin-block-end: 0;
    gap: 6px;
    list-style-type: none;
    transition: none;
    z-index: 1001;
    position: relative;
    transform-origin: top center;
    will-change: transform, opacity;
    overflow-x: auto;
    /* enable horizontal scroll */
    white-space: nowrap;
    /* prevent line breaks */
    flex-wrap: nowrap;
    /* prevent wrapping */
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling on iOS */
}

.points.snippet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background-color: var(--primary-white);
    background-image: url('https://firebasestorage.googleapis.com/v0/b/ambler-smoke.firebasestorage.app/o/Assets%2FGraphic%2FPoint-Snippet%20(Desktop).png?alt=media&token=6cf1cfe0-6cdc-40c6-a08a-5cddab6a61e5');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.highlight-span.blue {
    background-color: var(--blue);
    padding: 0px 3px;
    color: var(--primary-white);
}

.highlight-span.orange {
    background-color: var(--orange);
    padding: 0px 3px;
    color: var(--primary-white);
}

.points.button-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    /* allow wrapping */
    justify-content: center;
}

@media only screen and (max-width: 767px) {
    .points.button-wrapper {
        gap: 12px;
    }
}

.button.primary.points {
    background: var(--blue);
    color: var(--primary-white);
}

.button.secondary.points {
    background: #20607F26;
    color: var(--blue);
    border: 1px solid var(--blue);
    ;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.footer.content-wrapper {
    height: 10vh;
    border-top: 1px solid var(--secondary-background);
}

.footer.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 6px;
}

@media only screen and (max-width: 478px) {
    .footer.content {
        gap: 12px;
    }
}

.section-title.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
    margin-bottom: 12px;
    margin-top: 12px;
}

.section-title.content {
    padding: 0px 6px;
    font-size: 36px;
    font-weight: 900;
    text-align: left;
    background-color: var(--orange);
    color: var(--primary-white);
    text-transform: uppercase;
}

.gradient-text {
    font-weight: 900;
    font-size: 14px;
    background: linear-gradient(45deg,
            #FEAA1B,
            #FE7419,
            #ec4899,
            #EB1F90,
            #227FEE,
            #4332B2,
            #ec4899,
            #06b6d4);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 10s ease-in-out infinite;
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .gradient-text {
        color: #3b82f6;
    }
}

/* COMPONENTS */
/* CART */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

.cart-count.show {
    display: flex;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 12px;
    bottom: 12px;
    right: -400px;
    width: 400px;
    background: var(--primary-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: var(--default-border);
    overflow: hidden;
}

@media only screen and (max-width: 767px) {
    .cart-sidebar {
        top: 0;
        bottom: 0px;
        height: 100vh;
        border-radius: 0;
        width: 100%;
        right: -100%;
    }
}

@media only screen and (max-width: 767px) {
    .cart-sidebar.open {
        right: 0px !important;
    }
}

.cart-sidebar.open {
    right: 12px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--gray) 40%, transparent);
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--primary-black);
}

.cart-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    z-index: 1001;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.cart-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: color-mix(in srgb, var(--secondary-white) 40%, transparent);
    border-radius: var(--s-border);
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid color-mix(in srgb, var(--gray) 20%, transparent);
    background: white;
    border-radius: var(--s-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    border-color: color-mix(in srgb, var(--gray) 50%, transparent);
}

.quantity-btn:disabled {
    background: var(--primary-white);
    opacity: 1;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-black);
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: var(--warning);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cart-empty span {
    font-size: 14px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

@media only screen and (max-width: 478px) {
    .cart-footer {
        padding-bottom: 96px;
    }
}

.cart-total {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.total-final {
    font-weight: 600;
    font-size: 18px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    margin-top: 8px;
    margin-bottom: 0;
}

.checkout-button {
    width: 100%;
    background: var(--primary-black);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--max-border);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-button:hover {
    background: #333;
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CART */
/* ITEMS & POPUP */
.items.content-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
}
@media screen and (max-width: 991px) {
.items.content-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }}
@media only screen and (max-width: 767px) {
    .items.content-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }}

@media only screen and (max-width: 478px) {
    .items.content-wrapper {
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }}

.card.item {
    display: flex;
    flex-direction: column;
    background-color: var(--primary-white);
    padding: 0;
    border-radius: var(--default-border);
    transition: background-color 0.25s cubic-bezier(.09, 1.2, .52, 1.1),
        box-shadow 0.25s cubic-bezier(.09, 1.2, .52, 1.1),
        transform 0.25s cubic-bezier(.09, 1.2, .52, 1.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Initial very subtle shadow */
    transform: scale(1);
    /* Ensure it starts at scale 1 */
    cursor: pointer;
}

.card.item:hover {
    background-color: #FFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    /* A bit more pronounced for depth */
    transform: scale(1.01);
    /* Scales up by 1% */
}

.item.card-link {
    display: flex;
    justify-content: center;
}

.item.card-image {
    width: 100%;
    min-width: 24px;
    min-height: 24px;
    max-width: 256px;
    max-height: 256px;
}

.item.details-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0px 12px 12px 12px;
}

.item.details.row-1 {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.item.details.line {
    font-weight: 400;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 2px;
}

.item.details.brand {
    font-weight: 900;
    font-size: 14px;
}

.item.details.price {
    font-weight: 900;
    font-size: 14px;
}

.item.details.variant {
    font-weight: 400;
    font-size: 14px;
    margin-left: 0px;
}

/* Product Popup Styles */
.product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.product-popup.show {
    display: flex;
}

.popup-content {
    background: var(--primary-white);
    border-radius: var(--default-border);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    z-index: 1001;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.popup-image-container {
    position: relative;
    width: 100%;
    height: 384px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-image-glow {
    position: absolute;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 80%;
    height: 80%;
    object-fit: cover;
    filter: blur(20px);
    opacity: 0.3;
    transform: scale(1.1);
    z-index: 1;
}

.popup-image {
    position: relative;
    width: 80%;
    height: 80%;
    object-fit: cover;
    z-index: 2;
}

.popup-details {
    padding: 24px;
    margin-top: -64px;
}

.popup-line {
    font-size: 16px;
    color: var(--gray);
    margin: 0px;
    margin-bottom: 3px;
}

.popup-brand {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.popup-variant {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}

.popup-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 0px;
    line-height: 24px;
}

.popup-description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 24px;
}

.popup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.popup-button {
    padding: 12px 24px;
    border-radius: var(--max-border);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.popup-button.primary {
    background: var(--primary-black);
    color: white;
}

.popup-button.primary:hover {
    background: var(--primary-black);
}

.popup-button.secondary {
    background: transparent;
    color: var(--primary-black);
    border: 1px solid var(--primary-black);
}

.popup-button.secondary:hover {
    color: white;
}

.popup-row-1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* ITEMS & POPUP */
