/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --hover-bg: #000000;
    --hover-text: #ffffff;
    --placeholder-bg: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body.dark-mode {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --hover-bg: #ffffff;
    --hover-text: #000000;
    --placeholder-bg: #1a1a1a;
    --shadow-color: rgba(255, 255, 255, 0.5);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

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

/* ==================== PROMO BANNER ==================== */
.promo-banner {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 0.75rem 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    border-bottom: 2px solid var(--border-color);
}

.promo-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

.promo-scroll span {
    padding: 0 2rem;
    letter-spacing: 0.3em;
    font-weight: 600;
    font-size: 0.875rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* ==================== HEADER ==================== */
#main-header {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    background-color: transparent;
    transition: background-color 0.3s;
}

#main-header.scrolled,
#main-header:hover {
    background-color: var(--bg-color);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Navigation */
.nav-left,
.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-left a,
.nav-right a {
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    transition: opacity 0.3s;
}

.nav-left a:hover,
.nav-right a:hover {
    opacity: 0.6;
}

/* Logo */
.logo-center {
    position: absolute;
    left: 49%;
    transform: translateX(-50%);
}

.logo-center a {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    transition: opacity 0.3s;
}

.logo-center a:hover {
    opacity: 0.6;
}

/* Logo images */
.logo-center img {
    height: 40px;  /* Adjust size as needed */
    width: auto;
}

/* Show/hide based on theme */
body:not(.dark-mode) .logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

/* Theme Toggle & Cart */
#theme-toggle,
#cart-toggle {
    transition: opacity 0.3s;
    position: relative;
}

#theme-toggle:hover,
#cart-toggle:hover {
    opacity: 0.6;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MAIN CONTENT ==================== */
main {
    margin-top: 125px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.hero-logo {
    max-width: 400px;  /* Adjust size */
    width: 95%;
    height: auto;
    margin-bottom: 0 auto 2rem auto;
}

.flip-letter {
    display: inline-block;
    transform: scaleX(-1);  /* Mirrors horizontally */
    margin-left: -0.25em;
    position: relative;
    top: -0.019em;
}

/* Show/hide based on theme */
body:not(.dark-mode) .hero-logo.logo-dark {
    display: none;
}

body.dark-mode .hero-logo.logo-light {
    display: none;
}

/* 40% OFF CTA with outline animation */
.discount-cta {
    margin: 2rem 0;
    display: inline-block;
}

.discount-text {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.3em;
    font-weight: 700;
    -webkit-text-stroke: 2px var(--text-color);
    color: transparent;
    transition: color 0.3s;
    display: inline-block;
}

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

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.hero-btn {
    display: inline-block;
    border: 2px solid var(--border-color);
    padding: 1rem 3rem;
    letter-spacing: 0.2em;
    transition: background-color 0.3s, color 0.3s;
}

.hero-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

/* ==================== COLLECTIONS ==================== */
.collections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.collection-tile {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.collection-tile:first-child {
    border-right: 2px solid var(--border-color);
}

.collection-tile:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

.collection-tile h2 {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
}

/* ==================== SHOP PAGE ==================== */
.shop-page {
    padding: 3rem 0;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-title {
    font-size: 3rem;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;

}

/* Collection Filter */
.collection-filter {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
}

.filter-btn {
    letter-spacing: 0.2em;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    opacity: 1;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    background-color: var(--placeholder-bg);
    margin-bottom: 1rem;
    transition: opacity 0.3s;
    overflow: hidden;
}

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

.product-card:hover .product-image {
    opacity: 0.8;
}

.product-name {
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.product-price {
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* ==================== CONTENT PAGES ==================== */
.content-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-box {
    border: 2px solid var(--border-color);
    padding: 3rem;
    margin-bottom: 2rem;
}

.content-box p {
    letter-spacing: 0.05em;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

/* Returns Page */
.returns-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.returns-list {
    list-style-position: inside;
    letter-spacing: 0.05em;
    line-height: 2;
}

.returns-list li {
    margin-bottom: 0.75rem;
}

/* Size Guide Tables */
.size-guide-section {
    margin-bottom: 3rem;
}

.table-container {
    border: 2px solid var(--border-color);
    overflow-x: auto;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
}

.size-table th,
.size-table td {
    padding: 1rem;
    letter-spacing: 0.1em;
    text-align: left;
    border-right: 2px solid var(--border-color);
}

.size-table th:last-child,
.size-table td:last-child {
    border-right: none;
}

.size-table thead {
    border-bottom: 2px solid var(--border-color);
}

.size-table tbody tr:not(:last-child) {
    border-bottom: 2px solid var(--border-color);
}

/* ==================== FORMS ==================== */
.contact-form,
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    letter-spacing: 0.05em;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    border: 2px solid var(--border-color);
    padding: 1rem;
    letter-spacing: 0.2em;
    transition: background-color 0.3s, color 0.3s;
}

.submit-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

.form-message {
    letter-spacing: 0.05em;
    text-align: center;
    padding: 2rem;
}

/* ==================== CHECKOUT PAGE ==================== */
.checkout-page {
    padding: 3rem 0;
}

.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.checkout-form-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==================== STRIPE ELEMENTS ==================== */
.stripe-card-input {
    border: 2px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
}

.stripe-errors {
    color: #fa755a;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.stripe-placeholder {
    border: 2px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.stripe-placeholder p {
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stripe-note {
    font-size: 0.875rem;
    opacity: 0.6;
}

.order-summary-section .content-box {
    position: sticky;
    top: 100px;
}

.summary-items {
    margin-bottom: 2rem;
}

.summary-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.item-size {
    font-size: 0.875rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.summary-totals {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.total-final {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.place-order-btn {
    width: 100%;
    border: 2px solid var(--border-color);
    padding: 1rem;
    letter-spacing: 0.2em;
    transition: background-color 0.3s, color 0.3s;
}

.place-order-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

.empty-cart-message {
    text-align: center;
    padding: 4rem 0;
}

.empty-cart-message p {
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.shop-btn {
    display: inline-block;
    border: 2px solid var(--border-color);
    padding: 1rem 3rem;
    letter-spacing: 0.2em;
    transition: background-color 0.3s, color 0.3s;
}

.shop-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

/* ==================== ORDER SUCCESS ==================== */
.order-success {
    text-align: center;
}

.success-icon {
    margin-bottom: 2rem;
}

.order-number {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-weight: 600;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

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

.item-details {
    font-size: 0.875rem;
    opacity: 0.6;
}

.order-totals {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.continue-shopping-btn {
    display: inline-block;
    border: 2px solid var(--border-color);
    padding: 1rem 3rem;
    letter-spacing: 0.2em;
    margin-top: 2rem;
    transition: background-color 0.3s, color 0.3s;
}

.continue-shopping-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

/* ==================== FOOTER ==================== */
footer {
    border-top: 2px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.footer-section h4 {
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.footer-section p {
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    letter-spacing: 0.05em;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    border: 2px solid var(--border-color);
    border-left: none;
    padding: 0 1.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

.footer-bottom {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    z-index: 2000;
    pointer-events: none;
}

.cart-sidebar.active {
    pointer-events: all;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-sidebar.active .cart-overlay {
    opacity: 1;
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-left: 2px solid var(--border-color);
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.cart-sidebar.active .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-header h2 {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

#cart-close {
    transition: opacity 0.3s;
}

#cart-close:hover {
    opacity: 0.6;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    border: 2px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cart-item-name {
    letter-spacing: 0.05em;
}

.cart-item-size {
    font-size: 0.875rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    letter-spacing: 0.05em;
}

.remove-item {
    transition: opacity 0.3s;
}

.remove-item:hover {
    opacity: 0.6;
}

.cart-empty {
    letter-spacing: 0.05em;
    opacity: 0.6;
    text-align: center;
    padding: 3rem 0;
}

.cart-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.cart-total {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.shipping-note {
    font-size: 0.875rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.checkout-btn {
    display: block;
    width: 100%;
    border: 2px solid var(--border-color);
    padding: 1rem;
    letter-spacing: 0.2em;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.checkout-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

/* ==================== PRODUCT MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    max-width: 900px;
    width: 100%;
    padding: 2rem;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 0.6;
}

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

.modal-image {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    background-color: var(--placeholder-bg);
}

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

.modal-details h2 {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.modal-description {
    letter-spacing: 0.05em;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.size-selector {
    margin-bottom: 2rem;
}

.size-selector p {
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.size-btn {
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    letter-spacing: 0.05em;
    transition: background-color 0.3s, color 0.3s;
}

.size-btn:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

.size-btn.selected {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.add-to-cart-btn {
    width: 100%;
    border: 2px solid var(--border-color);
    padding: 1rem;
    letter-spacing: 0.2em;
    transition: background-color 0.3s, color 0.3s;
}

.add-to-cart-btn:not(:disabled):hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
}

.add-to-cart-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .checkout-grid,
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .order-summary-section .content-box {
        position: static;
    }
}

@media (max-width: 768px) {

    .hero-logo {
        max-width: 200px;  /* Smaller on mobile */
        width: 80%;    /* Or adjust width percentage */
        height: auto;
        margin: 0 auto 2rem auto;
        display: block;
        position: relative;
        top: 30px;
    }

    .page-title {
        padding-top: 5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-center a {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }

    .logo-center {
        position: static;
        transform: none;
        order: 2;
    }

    .nav-left,
    .nav-right {
        gap: 1rem;
    }

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

    .collection-tile:first-child {
        border-right: none;
    }

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

.original-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.9em;
    margin-right: 0.5rem;
}

.sale-price {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
}

.designer-link {
    color: #0066cc;  /* Blue link color */
    text-decoration: none;
    transition: opacity 0.3s;
}

.designer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Dark mode variation */
body.dark-mode .designer-link {
    color: #4d9fff;  /* Lighter blue for dark mode */
}