:root {
    --brand-navy: #1B2845;
    --brand-teal: #4DD0E1;
    --text-main: #333333;
    --text-muted: #888888;
    --bg-light: #F8F9FA;
    --accent-red: #D32F2F;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
}

.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-end {
    justify-content: space-end;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.gap-3 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

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

.d-none {
    display: none;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block;
    }

    .d-lg-none {
        display: none;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block;
    }
}

/* Section Spacing System */
.storefront-section {
    margin-bottom: 15px;
    padding: 0 25px;
}

@media (min-width: 992px) {
    .storefront-section {
        margin-bottom: 40px;
    }
}

.storefront-section:last-of-type {
    margin-bottom: 0;
}

/* Top Bar */
.top-bar {
    background: var(--brand-navy);
    color: #fff;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.top-bar a:hover,
.top-bar a.active {
    opacity: 1;
}

.top-bar .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Main Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 1000;
}

.sticky-top {
    position: sticky;
    top: 0;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand-navy);
}

.brand-logo {
    height: 40px;
}

.desktop-nav .nav {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.desktop-nav .nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.desktop-nav .nav-link:hover {
    color: var(--brand-navy);
}

.header-icons .icon-btn {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-main);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Footer Styling */
.site-footer {
    background: #fff;
}

.newsletter-section {
    background: #f4f4f4;
    padding: 4rem 0;
}

.newsletter-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.btn-navy {
    background: var(--brand-navy);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.footer-main .grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--brand-navy);
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Sections & Components */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.product-card {
    position: relative;
    transition: transform 0.3s ease;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-light);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform0.5s ease;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 0;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.badge-new {
    background: var(--brand-teal);
    color: #fff;
}

.badge-sale {
    background: var(--accent-red);
    color: #fff;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .hover-overlay {
    opacity: 1;
}

.btn-add-cart {
    background: #fff;
    color: #333;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.product-info {
    padding: 1.5rem 0;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.3rem 0;
    color: var(--text-main);
}

.product-price-row {
    font-size: 1.05rem;
    font-weight: 600;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.price-discount {
    color: var(--accent-red);
}

.swatches-row {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.swatch-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid transparent;
    cursor: pointer;
}

.swatch-wrapper:hover {
    border-color: #ddd;
}

.swatch-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.swatch-wrapper.oos::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-red);
    transform: rotate(-45deg);
    z-index: 2;
}

.swatch-wrapper.oos .swatch-circle {
    opacity: 0.4;
}

/* Rich text styling for visual HTML / Custom HTML blocks to override Tailwind resets */
.visual-html-block ul,
.custom-html-block ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.visual-html-block ol,
.custom-html-block ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.visual-html-block li,
.custom-html-block li {
    display: list-item !important;
}