/* =====================================================
   CVJEĆARNA WEBSHOP - Glavni CSS
   Elegantna, prozračna, ženstvena estetika
   ===================================================== */

/* === CSS VARIJABLE === */
:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    
    --color-primary: #d4a0a0;
    --color-primary-dark: #c08888;
    --color-primary-light: #f0d5d5;
    --color-secondary: #a8d5ba;
    --color-secondary-dark: #8ec4a4;
    --color-accent: #f5e6e0;
    --color-accent-warm: #fdf2ee;
    
    --color-text: #4a4a4a;
    --color-heading: #2c2c2c;
    --color-light-text: #888888;
    --color-border: #e8e0dd;
    --color-border-light: #f2edeb;
    
    --color-bg: #ffffff;
    --color-bg-soft: #fdfaf9;
    --color-bg-warm: #faf6f4;
    --color-bg-overlay: rgba(44, 44, 44, 0.5);
    
    --color-success: #a8d5ba;
    --color-warning: #f0d59a;
    --color-error: #e8958a;
    --color-info: #9ac2e8;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1280px;
    --header-height: 70px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
h2 { font-size: 2.2rem; letter-spacing: -0.3px; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-primary); }

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

::selection {
    background: var(--color-primary-light);
    color: var(--color-heading);
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-heading);
    color: #fff;
    border-color: var(--color-heading);
}
.btn-primary:hover {
    background: transparent;
    color: var(--color-heading);
}

.btn-secondary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-heading);
    border-color: var(--color-heading);
}
.btn-outline:hover {
    background: var(--color-heading);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--color-heading);
    border-color: #fff;
}
.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-sm { padding: 8px 20px; font-size: 12px; }
.btn-lg { padding: 16px 44px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

/* Top header bar */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    min-height: var(--header-height);
}

.header-logo a {
    display: flex;
    align-items: center;
}
.header-logo img {
    max-height: 50px;
    width: auto;
}
.header-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-heading);
    letter-spacing: 1px;
}
.header-logo .logo-text:hover { color: var(--color-primary); }

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

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--color-heading);
    font-size: 1.15rem;
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
}
.header-icon:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Navigation */
.header-nav {
    border-top: 1px solid var(--color-border-light);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li a {
    display: block;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-heading);
    position: relative;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav li a:hover::after,
.main-nav li a.active::after {
    width: calc(100% - 44px);
}

.main-nav li a:hover { color: var(--color-primary-dark); }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-heading);
    cursor: pointer;
    padding: 8px;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.97);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    transition: var(--transition);
}
.search-overlay.active {
    display: flex;
    opacity: 1;
}
.search-overlay .search-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
}
.search-overlay input {
    width: 100%;
    padding: 16px 0;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    border: none;
    border-bottom: 2px solid var(--color-heading);
    background: transparent;
    color: var(--color-heading);
    outline: none;
}
.search-overlay input::placeholder { color: var(--color-light-text); }
.search-overlay .close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-heading);
}

/* === HERO BANNER === */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-warm);
}
.hero-banner .hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-banner .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.25);
}
.hero-banner .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px 24px;
}
.hero-banner .hero-content h1 {
    color: #fff;
    font-size: 3.2rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-banner .hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* === SECTION STYLES === */
.section {
    padding: 80px 0;
}
.section-warm { background: var(--color-bg-warm); }
.section-accent { background: var(--color-accent); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin: 12px auto 0;
}
.section-header p {
    color: var(--color-light-text);
    margin-top: 12px;
    font-size: 1rem;
}

/* === CATEGORIES GRID === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.category-card:hover img { transform: scale(1.08); }
.category-card .category-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.category-card .category-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

/* === PRODUCT GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* === SHOP PAGE LAYOUT (sidebar + products) === */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}
.shop-sidebar {
    min-width: 0;
}
.shop-sidebar > div {
    position: sticky;
    top: 100px;
}
.shop-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--color-bg-warm);
}
.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-card .product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    display: flex;
    gap: 8px;
   transform: translateY(0);
    transition: var(--transition);
    justify-content: center;
    opacity: 0.65;
}
.product-card:hover .product-actions { transform: translateY(0); opacity: 1; }

.product-card .product-actions .btn {
    padding: 10px 20px;
    font-size: 11px;
    background: rgba(255,255,255,0.95);
    color: var(--color-heading);
    border-color: transparent;
    backdrop-filter: blur(4px);
}
.product-card .product-actions .btn:hover {
    background: var(--color-heading);
    color: #fff;
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    z-index: 2;
}
.product-badge.sale { background: var(--color-error); color: #fff; }
.product-badge.new { background: var(--color-secondary); color: #fff; }

.product-card .product-info {
    padding: 18px;
    text-align: center;
}
.product-card .product-info h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-heading);
}
.product-card .product-info h4 a { color: inherit; }
.product-card .product-info h4 a:hover { color: var(--color-primary-dark); }

.product-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-heading);
}
.product-price .old-price {
    text-decoration: line-through;
    color: var(--color-light-text);
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 6px;
}

/* === TEXT BLOCK WITH IMAGE === */
.text-block-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.text-block-section.reverse { direction: rtl; }
.text-block-section.reverse > * { direction: ltr; }
.text-block-content h2 { margin-bottom: 20px; }
.text-block-content p {
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.8;
}
.text-block-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.text-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* === PROMO BANNER === */
.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
}

/* === BLOG GRID === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
    transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card .blog-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.blog-card .blog-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-card .blog-content {
    padding: 24px;
}
.blog-card .blog-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.blog-card .blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.blog-card .blog-content h3 a { color: var(--color-heading); }
.blog-card .blog-content h3 a:hover { color: var(--color-primary-dark); }
.blog-card .blog-excerpt {
    color: var(--color-light-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === INSTAGRAM FEED === */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.instagram-grid a {
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
    position: relative;
}
.instagram-grid a img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.instagram-grid a:hover img { transform: scale(1.08); opacity: 0.8; }
.instagram-grid a::after {
    content: '\f16d';
    font-family: 'Font Awesome 6 Brands';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}
.instagram-grid a:hover::after { opacity: 1; }

/* === NEWSLETTER === */
.newsletter-section {
    text-align: center;
}
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--color-primary); }
.newsletter-form button {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: nowrap;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-heading);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-col p { margin-bottom: 8px; font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-primary-light); padding-left: 4px; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--color-primary-light); }

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-heading);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-control::placeholder { color: var(--color-light-text); }

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--color-primary);
}

.form-error { color: var(--color-error); font-size: 12px; margin-top: 4px; }

/* === ALERTS / FLASH MESSAGES === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.alert-warning { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* === BREADCRUMB === */
.breadcrumb {
    padding: 16px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--color-light-text);
    list-style: none;
}
.breadcrumb a { color: var(--color-light-text); }
.breadcrumb a:hover { color: var(--color-primary-dark); }
.breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: var(--color-border);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    list-style: none;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.pagination .active span {
    background: var(--color-heading);
    color: #fff;
    border-color: var(--color-heading);
}

/* === PRODUCT DETAIL === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding: 40px 0;
}
.product-gallery .main-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    margin-bottom: 12px;
    background: var(--color-bg-warm);
}
.product-gallery .main-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
}
.product-gallery .thumbnails img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}
.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
    opacity: 1;
    border-color: var(--color-primary);
}

.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.product-info-detail .price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 20px;
}
.product-info-detail .short-desc {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 24px;
}

.variation-options {
    margin-bottom: 24px;
}
.variation-options label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.variation-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.variation-btn {
    padding: 10px 22px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.variation-btn:hover { border-color: var(--color-primary); }
.variation-btn.active {
    background: var(--color-heading);
    color: #fff;
    border-color: var(--color-heading);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}
.quantity-selector button {
    width: 42px; height: 42px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.quantity-selector button:hover { background: var(--color-accent); }
.quantity-selector button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.quantity-selector button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quantity-selector input {
    width: 60px; height: 42px;
    text-align: center;
    border: 1.5px solid var(--color-border);
    border-left: none; border-right: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

/* === CART === */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-light-text);
    border-bottom: 2px solid var(--color-border-light);
}
.cart-table td {
    padding: 20px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
}
.cart-item-image {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.cart-item-name {
    font-weight: 500;
    color: var(--color-heading);
}
.cart-item-variation {
    font-size: 13px;
    color: var(--color-light-text);
}
.cart-remove {
    background: none;
    border: none;
    color: var(--color-light-text);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    transition: var(--transition);
}
.cart-remove:hover { color: var(--color-error); }

.cart-summary {
    background: var(--color-bg-warm);
    border-radius: var(--radius-md);
    padding: 30px;
}
.cart-summary h3 { margin-bottom: 20px; }
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}
.cart-summary-row.total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    border-top: 2px solid var(--color-border);
    margin-top: 10px;
    padding-top: 16px;
}
.cart-summary .coupon-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.cart-summary .coupon-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}

/* === CHECKOUT === */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 40px 0;
}
.checkout-section {
    margin-bottom: 30px;
}
.checkout-section h3 {
    font-size: 1.2rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border-light);
    margin-bottom: 20px;
}
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.payment-method:hover { border-color: var(--color-primary); }
.payment-method.active {
    border-color: var(--color-primary);
    background: var(--color-accent-warm);
}
.payment-method input[type="radio"] { accent-color: var(--color-primary); }
.payment-method img { height: 24px; }

/* === ORDER SUCCESS === */
.order-success {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    padding: 60px 24px;
}
.order-success .success-icon {
    width: 80px; height: 80px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #fff;
}

/* === COOKIE CONSENT === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-heading);
    color: rgba(255,255,255,0.9);
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-consent.show { display: block; }
.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cookie-consent p { font-size: 13px; margin: 0; flex: 1; }
.cookie-consent p a { color: var(--color-primary-light); text-decoration: underline; }
.cookie-consent .cookie-buttons { display: flex; gap: 10px; }

/* === QUICK VIEW MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--color-bg-overlay);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px; height: 36px;
    background: var(--color-bg-warm);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}
.modal-close:hover { background: var(--color-border); }
.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.quick-view-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.quick-view-image img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-info { padding: 30px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-products-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 200px 1fr; gap: 20px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { gap: 30px; }
    .text-block-section { gap: 40px; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .container { padding: 0 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .section { padding: 50px 0; }
    
    .header-nav { display: none; }
    .header-nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border-light);
        box-shadow: var(--shadow-md);
    }
    .main-nav { flex-direction: column; }
    .main-nav li a { padding: 14px 24px; border-bottom: 1px solid var(--color-border-light); }
    .mobile-menu-toggle { display: flex; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .shop-layout { grid-template-columns: 1fr; gap: 16px; }
    .shop-sidebar > div { position: static; }
    .shop-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .blog-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    
    .product-detail { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; gap: 20px; }
    .text-block-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero-banner { min-height: 50vh; }
    .hero-banner .hero-content h1 { font-size: 2rem; }
    
    .quick-view-grid { grid-template-columns: 1fr; }
    .quick-view-image { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16/10; }
    
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .cart-table thead { display: none; }
    .cart-table tr { display: flex; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--color-border-light); }
    .cart-table td { border: none; padding: 4px 8px; }

    /* Buketomat modul */
    .section [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    
    /* Force all inline grids to single column on mobile */
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    
    /* Cart summary sticky fix */
    .cart-summary { position: static !important; }
    
    /* Checkout payment methods */
    .payment-methods { gap: 6px !important; }
    .payment-method { padding: 8px 12px !important; font-size: 13px; }
    
    /* Delivery options */
    .delivery-option { padding: 10px 12px !important; }
    
    /* Form controls don't overflow */
    .form-control, input, select, textarea { max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card .product-info { padding: 12px; }
    .product-card .product-info h4 { font-size: 0.85rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type="email"] { border-right: 2px solid var(--color-border); border-radius: var(--radius-sm); }
    .newsletter-form button { border-radius: var(--radius-sm); }
    .cookie-consent .container { flex-direction: column; }
}

/* === LOADING / SPINNER === */
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-light-text); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

/* quick-view-modal-mobile-fix */
@media (max-width: 768px) {
    .quick-view-modal {
        padding: 10px !important;
    }
    .quick-view-content {
        width: 95vw !important;
        max-width: none !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    .quick-view-content .product-quick-grid {
        grid-template-columns: 1fr !important;
    }
}
/* fixed-header-override */
.site-header,
header.site-header,
header#siteHeader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}