/* Import premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Design Tokens & Variables */
:root {
    --bg-primary: #cea670; /* Golden sand/tan from logo background */
    --bg-secondary: #fbfbf9; /* Warm off-white for contrast elements */
    --bg-tertiary: #f4ede2; /* Very light sand/beige for panels */
    --text-primary: #1c1c1c; /* Rich charcoal for primary text */
    --text-secondary: #2d2d2d; /* Medium-dark charcoal for secondary text */
    --text-muted: #5a554f; /* Muted brown-grey for subtle labels */
    --accent: #4e3e33; /* Dark chocolate/walnut brown for premium brand accents */
    --accent-hover: #332820;
    --accent-light: #ece0d1;
    --border-color: #bfa07d; /* Coordinated border color matching the theme */
    --border-light: #dfd5c6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --header-height: 80px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-image: url('backround.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-primary); /* Fallback */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-align: center;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Header & Navigation */
header {
    background-color: transparent;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
    transition: var(--transition-smooth);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-tagline {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 1px solid var(--border-color);
    padding-left: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35em; /* Prevents word collision in flex layout */
    pointer-events: none; /* Prevents moving tagline characters from glitching the hover listener */
}

/* Screen/element vibration when the hammer strikes */
.logo-tagline.animate-tagline {
    animation: tagline-shake 0.15s linear;
    animation-delay: 1.05s; /* strikes at 1.0s, shakes slightly after */
}

/* Base words ("sıradanlığa", "bir") fade in */
.logo-tagline .word-base {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.logo-tagline.animate-tagline .word-base {
    opacity: 1;
}

/* --- Stitching Animation ("zarif") --- */
.word-zarif {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.word-zarif::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 2px dashed var(--accent);
}

.logo-tagline.animate-tagline .word-zarif::after {
    animation: draw-stitch 0.8s linear forwards;
    animation-delay: 0.1s;
}

.stitch-char {
    display: inline-block;
    opacity: 0;
    transform-origin: bottom center;
}

.logo-tagline.animate-tagline .stitch-char {
    animation: needle-stitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(0.1s + var(--i) * 0.12s);
}

/* --- Navigation Links Stitching --- */
.nav-links a .stitch-char {
    display: inline-block;
    transform-origin: bottom center;
    opacity: 1; /* Kept visible normally */
    transition: none;
}

.nav-links a.active-stitch .stitch-char {
    animation: needle-stitch 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: calc(var(--i) * 0.04s);
}

/* --- Hammer Strike Animation ("itiraz") --- */
.word-itiraz {
    display: inline-block;
    opacity: 0;
    transform-origin: bottom center;
}

.logo-tagline.animate-tagline .word-itiraz {
    animation: hammer-strike 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    animation-delay: 1.0s;
}

/* Keyframes */
@keyframes draw-stitch {
    to {
        width: 100%;
    }
}

@keyframes needle-stitch {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(0.9);
    }
    45% {
        opacity: 1;
        transform: translateY(3px) scale(1.1); /* Needle pierces down */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* Settle at normal position */
    }
}

@keyframes hammer-strike {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(1.6) rotate(-25deg);
        filter: blur(2px);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg); /* Heavy strike impact! */
        filter: blur(0);
    }
    68% {
        transform: translateY(-6px) rotate(2deg); /* Rebound bounce */
    }
    82% {
        transform: translateY(3px) rotate(-1deg); /* Settle bounce */
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0); /* Final state */
    }
}

@keyframes tagline-shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-1.5px, 1px); }
    40% { transform: translate(1px, -1.5px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1.5px, 1px); }
}

.logo-img {
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    background-color: var(--bg-secondary);
    transition: var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.search-box input {
    font-size: 12px;
    width: 140px;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.action-btn {
    color: var(--text-primary);
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    font-size: 24px;
}

/* Hero Section */
.hero {
    height: calc(85vh - var(--header-height));
    min-height: 500px;
    position: relative;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    z-index: 1;
    filter: brightness(0.95);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 550px;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title span {
    font-style: italic;
    font-weight: 600;
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 36px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--text-primary);
    transition: var(--transition-smooth);
}

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

/* Category Filter Section */
.catalog-section {
    padding: 80px 4% 100px;
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    position: relative;
    transition: var(--transition-smooth);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

.filter-btn.active::after {
    width: 75%; /* Underline is visible on active button */
}

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

.filter-btn.active {
    color: var(--text-primary);
}

/* Category Filter Button Stitching on Click */
.filter-btn .stitch-char {
    display: inline-block;
    transform-origin: bottom center;
    opacity: 1; /* Kept visible normally */
    transition: none;
}

.filter-btn.active-stitch .stitch-char {
    animation: needle-stitch 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: calc(var(--i) * 0.04s);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    aspect-ratio: 1 / 1;
    border-radius: 4px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.15, 0.75, 0.5, 1);
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

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

.quick-view-btn {
    pointer-events: auto;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.quick-view-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Quick view button letters stitch in on card hover */
.quick-view-btn .stitch-char {
    display: inline-block;
    opacity: 0;
    transform-origin: bottom center;
}

.product-card:hover .quick-view-btn .stitch-char {
    animation: needle-stitch 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(0.1s + var(--i) * 0.05s); /* Snappy and sequential stitch */
}

.favorite-card-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 12;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .favorite-card-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-card-btn:hover {
    color: #e25c5c;
    transform: scale(1.1);
}

.favorite-card-btn.favorited {
    opacity: 1;
    transform: scale(1);
    color: #e25c5c;
}

.product-info {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-designer {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 700;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Designer Highlight / Brand Story Section */
.brand-philosophy {
    background-color: transparent;
    padding: 100px 8%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-text {
    max-width: 500px;
}

.philosophy-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.philosophy-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.philosophy-title span {
    font-style: italic;
    font-weight: 600;
}

.philosophy-description {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 30px;
    font-size: 15px;
}

.philosophy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
}

.philosophy-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.philosophy-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
}

.close-drawer-btn {
    font-size: 24px;
    color: var(--text-primary);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-drawer-btn:hover {
    color: var(--accent);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

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

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.cart-item-designer {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
}

.cart-item-price {
    font-size: 12px;
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 80px;
    height: 28px;
    justify-content: space-between;
    padding: 0 8px;
    margin-top: 4px;
}

.qty-btn {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

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

.qty-val {
    font-size: 12px;
    font-weight: 500;
}

.remove-cart-item {
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding: 8px;
}

.remove-cart-item:hover {
    color: #e25c5c;
}

.cart-footer {
    padding: 24px 30px 40px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-subtotal-val {
    font-size: 16px;
}

.cart-shipping-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.checkout-btn {
    width: 100%;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-align: center;
    padding: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--text-primary);
    transition: var(--transition-smooth);
}

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

/* Modal General Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-primary);
    width: 1000px;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    overflow: hidden; /* Lock container to keep header buttons pinned */
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px; /* Pinned to top-right of the modal over the text column */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    z-index: 100; /* Float above images/texts */
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Product Detail Modal Specifics */
.product-modal-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow-y: auto; /* Allows only the text/image body content to scroll */
    max-height: 90vh;
}

.product-modal-images {
    background-color: var(--bg-tertiary);
    height: 100%;
    min-height: 450px;
}

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

.product-modal-details {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-designer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-product-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.modal-product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.7;
}

.modal-product-specs {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-product-specs span strong {
    color: var(--text-primary);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 16px;
}

.modal-actions .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 16px;
    height: 48px;
    gap: 16px;
}

.modal-actions .quantity-selector button {
    font-size: 16px;
    color: var(--text-secondary);
}

.modal-actions .quantity-selector span {
    font-weight: 500;
    width: 20px;
    text-align: center;
}

.add-to-cart-large {
    flex: 1;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    height: 48px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--text-primary);
    transition: var(--transition-smooth);
}

.add-to-cart-large:hover {
    background-color: transparent;
    color: var(--text-primary);
}

/* Checkout Modal Specifics */
.checkout-modal-container {
    width: 600px;
    padding: 60px 40px 40px 40px; /* Adjusted top padding to prevent overlap with floating Back button */
    overflow-y: auto; /* Handles vertical scrolling for checkout inputs on smaller screens */
}

.checkout-modal-container h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input, .form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 13px;
    width: 100%;
    background-color: var(--bg-secondary);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    background-color: var(--bg-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-order-summary {
    background-color: var(--bg-secondary);
    border: 1px dashed var(--accent);
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.checkout-order-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.checkout-order-summary div:last-child {
    margin-bottom: 0;
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
}

.submit-checkout-btn {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    border: 1px solid var(--text-primary);
    margin-top: 10px;
}

.submit-checkout-btn:hover {
    background-color: transparent;
    color: var(--text-primary);
}

/* Success Message inside Checkout */
.checkout-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
}

.checkout-success h4 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 10px;
}

.checkout-success p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Newsletter section */
.newsletter-section {
    background-color: transparent;
    padding: 80px 4%;
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}

.newsletter-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

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

.newsletter-form input {
    flex: 1;
    font-size: 13px;
    background: transparent;
}

.newsletter-form button {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer Section */
footer {
    background-color: transparent;
    padding: 80px 4% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Grid Configurations */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
    }
    
    .brand-philosophy {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 4%;
    }
    
    .philosophy-text {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    header {
        height: 70px;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .nav-links {
        display: none; /* Toggle handled in JS for mobile */
    }
    
    .search-box {
        display: none; /* Hide in simple layout or move inside hamburger */
    }
    
    .menu-toggle {
        display: block;
        order: -1;
    }
    
    .hero {
        height: 60vh;
        padding: 0 4%;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-modal-content {
        grid-template-columns: 1fr;
    }
    
    .product-modal-images {
        min-height: 300px;
    }
    
    .product-modal-details {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero {
        height: 50vh;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-overlay {
        background: rgba(255, 255, 255, 0.85);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .checkout-modal-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .quantity-selector {
        justify-content: center;
    }
}
