*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #111111;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #757575;
    --gray-600: #707072;
    --header-height: 84px;
    --promo-height: 36px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
}

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

ul {
    list-style: none;
}

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

/* Promo Bar */
.promo-bar {
    background: var(--gray-100);
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--promo-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-bar a {
    text-decoration: underline;
    margin-left: 4px;
}

/* Header */
.header {
    position: fixed;
    top: var(--promo-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header.mega-active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    min-height: var(--header-height);
    height: var(--header-height);
    overflow: visible;
    background: var(--white);
}

.nav > .nav-toggle,
.nav > .nav-actions,
.nav-brand-bar {
    display: flex;
    align-items: center;
    align-self: stretch;
    background: var(--white);
}

.nav-brand-bar {
    gap: 32px;
    flex: 1;
    min-width: 0;
    padding: 0 16px 0 8px;
}

.nav > .nav-toggle {
    padding-right: 8px;
}

.nav > .nav-actions {
    padding-left: 4px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--black);
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.logo-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.logo-accent {
    font-weight: 500;
    color: var(--gray-600);
}

.logo-tld {
    font-size: 12px;
    font-weight: 700;
    color: #1a6b4a;
    margin-left: 1px;
}

.logo-image {
    height: 76px;
    width: auto;
    max-width: 480px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
}

.nav-menu {
    display: flex;
    gap: 16px;
    position: static;
    left: auto;
    transform: none;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-item {
    position: static;
    list-style: none;
}

.nav-menu a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    letter-spacing: 0;
    text-decoration: none;
    line-height: 1.5;
    padding: 8px 0;
    position: relative;
    display: inline-block;
    transition: opacity var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition);
}

.nav-item:hover > a::after,
.nav-item.mega-open > a::after {
    width: 100%;
}

.nav-item--akcija > a.nav-link-akcija {
    background: #ff9500;
    color: #111 !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    line-height: 1.2;
    transition: background var(--transition), transform var(--transition);
}

.nav-item--akcija > a.nav-link-akcija::after {
    display: none;
}

.nav-item--akcija > a.nav-link-akcija:hover {
    background: #e68600;
    opacity: 1;
}

/* Mega Menu */
.mega-menu-panel {
    display: none;
    position: relative;
    width: 100%;
    height: 35vh;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.header.mega-active .mega-menu-panel {
    display: block;
}

.mega-menu {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mega-menu.active {
    display: block;
}

.mega-menu-inner {
    position: absolute;
    top: 16px;
    left: 0;
    min-width: 200px;
    max-width: 1000px;
    max-height: calc(35vh - 32px);
    overflow-y: auto;
}

.mega-menu-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.mega-menu-group {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-group h4 {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.mega-menu-group h4 a {
    color: var(--black);
    display: inline-block;
    padding: 2px 4px;
    margin-left: -4px;
    border-radius: 3px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-group h4 a::after {
    display: none;
}

.mega-menu-group h4 a:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #111;
    transform: translateX(4px);
}

.mega-menu-group ul {
    list-style: none;
    padding-left: 12px;
}

.mega-menu-group ul li {
    margin-bottom: 2px;
    border-radius: 3px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-group ul li:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mega-menu-group ul a {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.6;
    display: inline-block;
    padding: 1px 4px;
    margin-left: -4px;
    transition: color var(--transition), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-group ul a::after {
    display: none;
}

.mega-menu-group ul a:hover {
    color: var(--black);
    transform: translateX(4px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.icon-btn:hover {
    opacity: 0.6;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--black);
    color: var(--black);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-chevron,
.nav-submenu {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-panel {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.search-container,
form.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 8px;
    width: 100%;
}

.search-container svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: inherit;
    background: transparent;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.search-close svg {
    width: 20px;
    height: 20px;
}

.search-suggestions {
    margin-top: 8px;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    border-top: 1px solid var(--gray-200);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
    background: var(--gray-100);
    outline: none;
}

.search-suggestion-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggestion-thumb svg {
    width: 22px;
    height: 22px;
    color: var(--gray-400);
}

.search-suggestion-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.search-suggestion-price--sale {
    color: #e60000;
}

.search-suggestions-empty,
.search-suggestions-footer {
    padding: 12px 4px;
    font-size: 14px;
    color: var(--gray-600);
}

.search-suggestions-footer a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.search-suggestions-loading {
    padding: 12px 4px;
    font-size: 14px;
    color: var(--gray-500);
}

/* Main offset for fixed header */
main {
    padding-top: calc(var(--header-height) + var(--promo-height));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    min-width: 120px;
}

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

.btn-primary:hover {
    background: var(--gray-200);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-banner {
    background: #ff9500;
    color: #111 !important;
    font-weight: 700;
    border: none;
    text-decoration: none;
}

.btn-banner:hover {
    background: #e68600;
    color: #111 !important;
}

.slide-content .btn-banner,
.grid-banner .card-actions .btn-banner,
.featured-card .card-actions .btn-banner,
.spotlight-content .btn-banner {
    background: #ff9500;
    color: #111 !important;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-content .btn-banner:hover,
.grid-banner .card-actions .btn-banner:hover,
.featured-card .card-actions .btn-banner:hover,
.spotlight-content .btn-banner:hover {
    background: #e68600;
    color: #111 !important;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #000; /* ili #fff, zavisno od dizajna */
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 48px;
    color: var(--white);
    max-width: 500px;
    z-index: 2;
}

.slide-content h2 {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all var(--transition);
}

.hero-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.05);
}

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

.carousel-prev {
    left: 24px;
}

.carousel-next {
    right: 24px;
}

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Grid Banners (2x2 below Hero) */
.grid-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
}

.grid-banner {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.grid-banner .card-image {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.grid-banner .card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.45));
}

.grid-banner .card-overlay h3 {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 4px;
}

.grid-banner .card-overlay p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
}

.featured-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.featured-card--wide {
    grid-column: span 2;
    aspect-ratio: 2.5 / 1;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.featured-card:hover .card-image {
    transform: scale(1.03);
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: var(--white);
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.4));
}

.card-overlay h3 {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 4px;
}

.card-overlay p {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
}

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

/* Spotlight */
.spotlight {
    padding: 4px;
}

.spotlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    background: var(--gray-100);
}

.spotlight-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.spotlight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 64px;
}

.spotlight-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.spotlight-content p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 400px;
    line-height: 1.6;
}

.spotlight-content .btn-banner {
    align-self: flex-start;
}

/* Product Showcase */
.product-showcase {
    padding: 64px 0;
    max-width: none;
    width: 100%;
    scroll-margin-top: calc(var(--header-height) + var(--promo-height) + 16px);
}

.product-showcase--search {
    padding-top: 32px;
    scroll-margin-top: calc(var(--header-height) + var(--promo-height) + 16px);
}

body.search-results-active main {
    padding-top: calc(var(--header-height) + var(--promo-height));
}

.product-showcase .showcase-header {
    max-width: 1440px;
    margin: 0 auto 40px;
    padding: 0 48px;
}

.showcase-header {
    margin-bottom: 40px;
}

.showcase-header--with-brands {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.showcase-header-text {
    min-width: 0;
}

.showcase-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.showcase-header p {
    color: var(--gray-600);
    font-size: 16px;
}

.showcase-brand-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 1 auto;
}

.showcase-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 52px;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase-brand-link:hover,
.showcase-brand-link.is-active {
    border-color: var(--black);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.showcase-brand-link.is-active {
    background: #fafafa;
}

.showcase-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-catalog {
    width: 100%;
}

.product-catalog--full {
    width: 100%;
}

.product-catalog--full .catalog-products {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    width: 100%;
}

.catalog-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    padding-left: 0;
}

.catalog-products {
    padding: 0 48px 0 32px;
    min-width: 0;
}

.catalog-layout--full .catalog-products {
    padding: 0 48px;
    max-width: 1440px;
    margin: 0 auto;
}

.catalog-filter {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 20px 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.catalog-filter-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.filter-input {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--white);
}

.filter-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-search-hint {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

.filter-group--categories {
    position: relative;
}

.filter-selected-cat {
    margin: 0;
    font-size: 12px;
    color: var(--gray-700);
}

.filter-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: visible;
}

.filter-cat-item {
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

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

.filter-cat-main,
.filter-cat-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: var(--white);
    text-align: left;
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--gray-900);
    transition: background var(--transition), color var(--transition);
}

.filter-cat-main:hover,
.filter-cat-option:hover,
.filter-cat-item.is-selected > .filter-cat-main,
.filter-cat-option.is-selected {
    background: var(--gray-100);
}

.filter-cat-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

.filter-cat-flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    max-width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    z-index: 20;
}

.filter-cat-item.has-children:hover .filter-cat-flyout,
.filter-cat-item.has-children:focus-within .filter-cat-flyout {
    display: block;
}

.filter-cat-option--all {
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
}

.filter-cat-sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 4px 12px;
}

.filter-cat-sublist .filter-cat-option {
    font-size: 13px;
    padding: 7px 12px;
    color: var(--gray-700);
}

.filter-cat-clear {
    margin-top: 8px;
    border: none;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.filter-cat-clear:hover {
    color: var(--black);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-filter {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.catalog-empty,
.category-hint {
    color: var(--gray-600);
    font-size: 14px;
}

.category-hint {
    margin-top: 8px;
}



.catalog-pagination {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.catalog-pagination-info {
    font-size: 14px;
    color: var(--gray-600);
}

.catalog-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.catalog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    background: var(--white);
    transition: background var(--transition), border-color var(--transition);
}

.catalog-page-link:hover:not(.catalog-page-link--disabled):not(.catalog-page-link--active) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.catalog-page-link--active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.catalog-page-link--disabled {
    color: var(--gray-400);
    cursor: default;
}

.catalog-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    color: var(--gray-600);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.product-catalog--compact .catalog-products .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-catalog--compact .product-image,
.product-catalog--full .product-image {
    max-height: none;
    width: 100%;
    aspect-ratio: 1;
}

/* Images in category listings */
.category-page .product-catalog--compact .product-image {
    max-height: 196px;
}

/* Smaller product images on homepage (previous setting) */
.product-showcase .product-image {
    max-height: 173px;
}

.product-showcase .product-card,
.category-page .product-card {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 10px;
    background: var(--white);
    transition: transform var(--transition), border-color var(--transition);
}

.product-showcase .product-card:hover,
.category-page .product-card:hover {
    border-color: #d4d4d4;
}

.product-catalog--compact .product-card,
.product-catalog--full .product-card {
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: transform var(--transition);
    color: var(--black);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-4px);
    }
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    max-height: 322px;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-sale-ribbon {
    position: absolute;
    top: 16px;
    left: -34px;
    width: 132px;
    transform: rotate(-45deg);
    background: #d93025;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 6px 0;
    z-index: 2;
    pointer-events: none;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--white);
    display: block;
    transition: opacity var(--transition);
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-image img {
        opacity: 0.85;
    }
}

.product-card .variation-swatches {
    justify-content: center;
    width: 100%;
}

.product-card .variation-swatch--text {
    max-width: 100%;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding-top: 4px;
    gap: 4px;
    width: 100%;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 48px;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--black);
}

.product-origin {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.product-brand-slot {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-info .product-brand {
    justify-content: center;
    width: 100%;
}

.product-info .brand-logo {
    object-position: center center;
}

.product-info .product-price {
    margin-top: auto;
    width: 100%;
    text-align: center;
    color: var(--black);
}

.product-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 120px;
    height: 24px;
    object-fit: contain;
    object-position: left center;
}

.brand-name {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.product-image-placeholder svg {
    width: 48px;
    height: 48px;
}

.product-image-placeholder--large svg {
    width: 80px;
    height: 80px;
}

.variation-swatch--text {
    width: max-content;
    max-width: 100%;
    min-width: 72px;
    height: auto;
    min-height: 48px;
    padding: 6px 14px;
    overflow: visible;
}

.variation-swatch-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--black);
    white-space: nowrap;
}

.stock-badge {
    font-size: 13px;
    font-weight: 500;
    min-height: 20px;
    margin-bottom: 2px;
}

.product-card-footer .stock-badge {
    margin-bottom: 0;
}

.stock-badge--in {
    color: #1a6b4a;
}

.stock-badge--out {
    color: #e60000;
}

.stock-badge--detail {
    font-size: 16px;
    margin-bottom: 16px;
}

.product-sale-expiry {
    font-size: 12px;
    font-weight: 500;
    color: #e60000;
    margin: 4px 0 0;
    text-align: center;
    width: 100%;
    line-height: 1.3;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 24px;
}

.price-current {
    font-weight: 500;
}

.price-sale {
    color: #e60000;
    font-weight: 500;
    margin-right: 8px;
}

.price-original {
    color: var(--gray-600);
    text-decoration: line-through;
    font-size: 14px;
}

/* Variation Swatches */
.variation-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 4px 4px 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.variation-swatches--empty {
    visibility: hidden;
}

.variation-swatch {
    width: 48px;
    height: 48px;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    background: transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variation-swatch:hover,
.variation-swatch.active {
    border-color: var(--black);
}

.variation-swatch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--white);
    border-radius: 2px;
}

.variation-swatches--detail {
    margin-top: 0;
    margin-bottom: 8px;
    padding: 0;
    min-height: auto;
}

.variation-swatches--detail .variation-swatch {
    width: 72px;
    height: 72px;
}

.variation-swatches--detail .variation-swatch--text {
    width: max-content;
    max-width: 100%;
    min-width: 88px;
    height: auto;
    min-height: 72px;
    padding: 8px 16px;
    overflow: visible;
}

.variation-swatches--detail .variation-swatch-label {
    font-size: 13px;
}

.selected-variation {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--gray-600);
    min-height: 0;
}

.selected-variation:empty {
    display: none;
    margin-bottom: 0;
}

.selected-variation span {
    color: var(--black);
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.product-gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main .product-sale-ribbon {
    top: 20px;
    left: -38px;
    width: 150px;
    font-size: 11px;
    padding: 7px 0;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--white);
}

.product-detail-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 12px;
}

.product-detail-description-block {
    margin-top: 20px;
}

.product-detail-variations-block {
    margin-top: 24px;
}

.product-detail-variations {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.product-detail-description--under-image {
    margin-top: 0;
    margin-bottom: 0;
    max-width: none;
}

.product-detail-variation-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.product-detail-variation-row:last-child {
    border-bottom: none;
}

.product-detail-variation-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .product-detail-variation-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}



.product-detail-variation-price {
    flex-shrink: 0;
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.product-detail-variation-price .price-original {
    font-size: 12px;
}

.product-detail-variation-form {
    flex-shrink: 0;
    margin: 0;
    min-width: 90px;
}

.btn-detail-variation-add {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 20px;
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-detail-variation-add:hover {
    background: var(--black);
    color: var(--white);
}

.product-detail-brand {
    margin-bottom: 12px;
}

.product-detail-brand .brand-logo {
    width: 200px;
    height: 48px;
}

.product-detail-brand .brand-name {
    font-size: 16px;
    color: var(--gray-600);
}

.product-detail-description {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-top: 32px;
    margin-bottom: 0;
    max-width: 480px;
}

.product-detail-info h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--black);
}

.product-detail-category {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.product-detail-price {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--black);
}

.product-detail-meta {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.product-detail-meta strong {
    color: var(--black);
}

.btn-add-to-bag {
    background: var(--black);
    color: var(--white);
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    font-size: 16px;
}

.btn-add-to-bag:hover:not(:disabled) {
    background: #333;
}

.btn-add-to-bag:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.sold-out-text {
    color: #c8102e;
    font-weight: 600;
    font-size: 15px;
    display: block;
}

.product-detail-variation-row .sold-out-text {
    font-size: 12px;
    font-weight: 600;
    color: #c8102e;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px; /* match button padding so text starts at same position */
    white-space: nowrap;
}

.product-detail-info .sold-out-text {
    font-size: 16px;
    display: inline-block;
}

/* Category Page */
.category-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 48px 0 80px;
}

.category-page .category-header {
    max-width: 1440px;
    margin: 0 auto 40px;
    padding: 0 48px;
}

.category-header {
    margin-bottom: 40px;
}

.category-header h1 {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-subnav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.category-subnav-link {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-600);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.category-subnav-link:hover {
    color: var(--black);
    border-bottom-color: var(--black);
}

.category-empty {
    color: var(--gray-600);
    font-size: 16px;
}

/* Trending */
.trending {
    padding: 64px 48px;
    background: var(--gray-100);
}

.trending h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trending-subtitle {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 500px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.trending-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trending-column li {
    margin-bottom: 8px;
}

.trending-column a {
    font-size: 14px;
    color: var(--gray-600);
    transition: color var(--transition);
}

.trending-column a:hover {
    color: var(--black);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 48px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto 48px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-column a {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 2;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-400);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Cart badge */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: calc(var(--promo-height) + var(--header-height) + 12px);
    right: 24px;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    background: var(--gray-100);
    color: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flash-message--success {
    background: #e8f5ef;
}

.flash-message--error {
    background: #fdeaea;
}

.flash-message--warning,
.flash-message--info {
    background: #f5f5f5;
}

/* Cart & Checkout */
.cart-page,
.checkout-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 48px 48px 80px;
}

.order-success-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.cart-page h1,
.checkout-page h1,
.order-success-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--white);
    display: block;
}

.cart-item-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-parent,
.cart-item-meta {
    font-size: 13px;
    color: var(--gray-600);
}

.cart-item-price {
    font-size: 14px;
    margin-top: 4px;
}

.cart-item-total {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    padding: 8px;
}

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

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 64px;
    align-items: start;
}

.cart-main {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-form {
    width: 100%;
    min-width: 0;
}

.cart-items {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cart-summary {
    background: var(--gray-100);
    padding: 28px 32px;
    border-radius: 4px;
    position: sticky;
    top: calc(var(--header-height) + var(--promo-height) + 24px);
}

.order-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.order-totals-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

.order-totals-row--total {
    font-size: 18px;
    color: var(--black);
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-200);
}

.order-totals-row--total strong {
    font-weight: 700;
}

.order-totals-row--discount span:last-child {
    color: #1a7f4b;
    font-weight: 600;
}

.order-shipping-note {
    margin: 12px 0 4px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 4px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.order-shipping-note a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
}

.order-shipping-note--success {
    background: #e8f5ef;
    color: #1a5c38;
}

.order-benefits {
    margin: 8px 0 4px;
    padding: 10px 12px 10px 28px;
    background: #e8f5ef;
    border-radius: 4px;
    font-size: 13px;
    color: #1a5c38;
    list-style: disc;
}

.order-benefits li + li {
    margin-top: 4px;
}

.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cart-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--black);
}

.btn-cart-secondary:hover {
    background: var(--gray-200);
}

.btn-cart-checkout {
    width: 100%;
    max-width: none;
    border-radius: 30px;
    text-align: center;
}

.cart-empty {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 64px;
    align-items: start;
}

.checkout-form,
.checkout-summary {
    width: 100%;
}

.checkout-summary {
    background: var(--gray-100);
    padding: 28px 32px;
    border-radius: 4px;
    position: sticky;
    top: calc(var(--header-height) + var(--promo-height) + 24px);
}

.checkout-form h2,
.checkout-summary h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--black);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--black);
}

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

.form-input--qty {
    width: 72px;
    text-align: center;
}

.form-error {
    color: #e60000;
    font-size: 13px;
    margin-top: 4px;
}

.checkout-items {
    list-style: none;
    margin-bottom: 24px;
}

.checkout-items li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.item-display-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-display-product {
    font-weight: 600;
    color: var(--black);
    font-size: 14px;
}

.item-display-variation {
    font-size: 13px;
    color: var(--gray-600);
}

.checkout-item-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.checkout-item-qty {
    font-size: 13px;
    color: var(--gray-600);
}

.cart-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-title .item-display-product {
    font-size: 16px;
}

.checkout-page .checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    align-content: start;
}

.checkout-page .checkout-form h2,
.checkout-page .checkout-form > .btn {
    grid-column: 1 / -1;
}

.checkout-page .checkout-form > .form-group:last-of-type {
    grid-column: 1 / -1;
}

.order-success-summary {
    margin: 24px 0 32px;
    color: var(--gray-600);
    line-height: 1.8;
}

.add-to-cart-form {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    .product-catalog--full .catalog-products {
        padding: 0 32px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail-variation-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .product-detail-variation-price {
        min-width: 70px;
        text-align: left;
    }

    .btn-detail-variation-add {
        padding: 7px 12px;
        font-size: 12px;
    }

    .nav {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-areas: "toggle brand actions";
        align-items: center;
        column-gap: 8px;
        padding: 0 12px;
    }

    .nav > .nav-toggle {
        grid-area: toggle;
        justify-self: start;
    }

    .nav-brand-bar {
        grid-area: brand;
        flex: none;
        gap: 0;
        justify-content: center;
        padding: 0;
        min-width: 0;
        overflow: hidden;
    }

    .nav > .nav-actions {
        grid-area: actions;
        justify-self: end;
        gap: 4px;
    }

    .logo {
        min-width: 0;
        max-width: 100%;
        justify-content: center;
    }

    .logo-image {
        height: 64px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        object-position: center center;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        max-height: calc(100dvh - var(--promo-height) - var(--header-height));
        background: var(--white);
        padding: 0 16px 24px;
        transform: none;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.mobile-open > .nav-item:first-child {
        border-top: none;
    }

    .nav-menu.mobile-open > .nav-item {
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu.mobile-open > .nav-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 13px 0;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.3;
    }

    .nav-menu.mobile-open > .nav-item:not(.has-mega-menu) > a {
        font-weight: 500;
    }

    .nav-menu.mobile-open .nav-item--akcija > a.nav-link-akcija {
        justify-content: center;
        margin-top: 4px;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 999px;
    }

    .nav-menu.mobile-open .nav-chevron {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform var(--transition);
        flex-shrink: 0;
        margin-top: -4px;
    }

    .nav-menu.mobile-open .nav-item.mega-open > a .nav-chevron {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    .nav-menu.mobile-open .nav-item.mega-open > .nav-submenu {
        display: block;
        padding: 0 0 8px;
        margin-top: -4px;
    }

    .nav-submenu a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
        line-height: 1.35;
        color: var(--gray-600);
    }

    .nav-submenu-all a {
        font-weight: 600;
        color: var(--black);
        padding-left: 4px;
    }

    .nav-submenu-title {
        font-weight: 600;
        color: var(--black);
        padding-left: 4px;
    }

    .nav-submenu-nested {
        padding: 2px 0 8px 12px;
        border-left: 2px solid var(--gray-200);
        margin: 0 0 4px 8px;
    }

    .nav-submenu-nested a {
        padding: 8px 0 8px 10px;
        font-size: 14px;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .header.mega-active .mega-menu-panel {
        display: none;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spotlight-inner {
        grid-template-columns: 1fr;
    }

    .spotlight-content {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) and (pointer: coarse) {
    .product-card {
        transition: none;
    }
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

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

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

    .featured-card--wide {
        grid-column: span 1;
        aspect-ratio: 1;
    }

    .slide-content {
        left: 24px;
        bottom: 60px;
        right: 24px;
    }

    .hero-carousel {
        height: auto;
        min-height: 0;
        max-height: none;
        background: var(--white);
    }

    .carousel-track {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
    }

    .slide-image {
        background-size: contain;
        background-position: center center;
        background-color: #000;
    }

    .carousel-dots {
        bottom: 12px;
    }

    .nav {
        padding: 0 24px;
    }

    .logo-image {
        height: 66px;
    }

    .product-showcase .product-catalog--compact .product-image,
    .category-page .product-catalog--compact .product-image {
        position: relative;
        aspect-ratio: unset;
        width: 100%;
        height: 148px;
        min-height: 148px;
        max-height: 148px;
        padding: 0;
        flex-shrink: 0;
        overflow: hidden;
    }

    .product-showcase .product-catalog--compact .product-image img,
    .product-showcase .product-catalog--compact .product-image .product-image-placeholder,
    .category-page .product-catalog--compact .product-image img,
    .category-page .product-catalog--compact .product-image .product-image-placeholder {
        position: absolute;
        inset: 4px;
        width: calc(100% - 8px);
        height: calc(100% - 8px);
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center;
        transition: none;
    }

    .category-subnav {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 4px;
        scrollbar-width: none;
    }

    .category-subnav::-webkit-scrollbar {
        display: none;
    }

    .category-subnav-link {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--gray-100);
        border-bottom: none;
    }

    .category-subnav-link:hover {
        background: var(--gray-200);
        border-bottom: none;
    }

    .product-showcase {
        padding: 40px 0;
    }

    .product-showcase .showcase-header,
    .category-page .category-header {
        padding: 0 24px;
    }

    .showcase-header--with-brands {
        flex-direction: column;
        align-items: flex-start;
    }

    .showcase-brand-strip {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .showcase-brand-link {
        width: 132px;
        height: 44px;
        padding: 6px 10px;
    }

    .category-page {
        padding-top: 12px;
        padding-bottom: 48px;
    }

    .category-page .category-header {
        margin-bottom: 12px;
    }

    .category-page .category-header h1 {
        margin-bottom: 10px;
    }

    .category-page .category-header .category-subnav {
        margin-bottom: 0;
        padding-bottom: 4px;
    }

    .category-page .catalog-layout {
        gap: 8px;
    }

    .category-page .catalog-products {
        padding-top: 0;
    }

    .trending {
        padding: 40px 24px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-sidebar {
        display: none !important; /* remove filter on mobile */
    }

    .catalog-filter {
        border-left: 1px solid var(--gray-200);
        border-radius: 8px;
    }

    .filter-cat-flyout {
        left: 0;
        top: 100%;
        max-width: none;
        width: 100%;
    }

    .catalog-products,
    .catalog-layout--full .catalog-products,
    .product-catalog--full .catalog-products {
        padding: 0 24px;
    }

    .product-catalog--compact .catalog-products .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .footer {
        padding: 40px 24px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-page {
        padding: 16px 16px 40px;
    }

    .cart-page h1 {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-items {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        grid-template-areas:
            "image info remove"
            "image qty total";
        gap: 10px 12px;
        align-items: start;
        padding: 14px;
        margin: 0;
        background: var(--gray-100);
        border-radius: 10px;
        border-bottom: none;
    }

    .cart-item-image {
        grid-area: image;
        grid-row: 1 / 3;
        width: 76px;
        height: 76px;
        align-self: start;
    }

    .cart-item-info {
        grid-area: info;
        min-width: 0;
    }

    .cart-item-info h3,
    .cart-item-title {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .cart-item-title .item-display-product {
        font-size: 14px;
        word-break: break-word;
    }

    .cart-item-title .item-display-variation {
        font-size: 12px;
    }

    .cart-item-meta {
        font-size: 12px;
    }

    .cart-item-price {
        font-size: 13px;
        margin-top: 4px;
    }

    .cart-item-remove {
        grid-area: remove;
        align-self: start;
        justify-self: end;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--white);
    }

    .cart-item-qty {
        grid-area: qty;
        display: flex;
        align-items: center;
        gap: 8px;
        align-self: end;
    }

    .cart-item-qty label {
        font-size: 13px;
        font-weight: 500;
        color: var(--gray-600);
    }

    .cart-item .form-input--qty {
        width: 64px;
        min-height: 40px;
        font-size: 16px;
    }

    .cart-item-total {
        grid-area: total;
        align-self: end;
        text-align: right;
        min-width: 0;
    }

    .cart-item-total p {
        font-size: 17px;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }

    .cart-item-total p::before {
        content: 'Ukupno';
        display: block;
        font-size: 11px;
        font-weight: 500;
        color: var(--gray-600);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }

    .cart-summary {
        position: static;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .coupon-box {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .coupon-form-row {
        flex-wrap: wrap;
    }

    .coupon-form-row .form-input {
        min-width: 0;
        flex: 1 1 120px;
    }

    .btn-coupon {
        min-height: 44px;
    }

    .loyalty-code-display {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-copy-code {
        width: 100%;
        text-align: center;
        min-height: 44px;
    }

    .loyalty-code-display-value {
        font-size: 16px;
        word-break: break-all;
    }

    .coupon-applied {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        line-height: 1.45;
    }

    .order-totals {
        gap: 12px;
        margin-bottom: 20px;
    }

    .order-totals-row {
        font-size: 14px;
        align-items: baseline;
    }

    .order-totals-row span:first-child {
        flex: 1;
        min-width: 0;
        padding-right: 10px;
    }

    .order-totals-row span:last-child,
    .order-totals-row strong {
        flex-shrink: 0;
        text-align: right;
    }

    .order-totals-row--total {
        font-size: 17px;
    }

    .order-shipping-note,
    .order-benefits {
        font-size: 13px;
        line-height: 1.45;
    }

    .btn-cart-checkout {
        min-height: 48px;
        font-size: 16px;
    }

    .account-page,
    .account-order-page {
        padding: 16px 16px 40px;
    }

    .account-header,
    .account-order-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    .account-header h1,
    .account-order-header h1 {
        font-size: 26px;
    }

    .account-header .btn-logout {
        align-self: stretch;
        width: 100%;
        max-width: none;
        min-height: 44px;
        text-align: center;
        justify-content: center;
    }

    .loyalty-card {
        margin-bottom: 24px;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .loyalty-card-top {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .loyalty-card-tier {
        font-size: 28px;
    }

    .loyalty-card-benefit {
        font-size: 15px;
    }

    .loyalty-card-stats p {
        text-align: left;
        margin-bottom: 8px;
    }

    .loyalty-card-codes {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 14px;
        margin-bottom: 18px;
    }

    .loyalty-online-code {
        font-size: 20px;
        word-break: break-all;
        letter-spacing: 0.08em;
    }

    .loyalty-barcode {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: 40px;
    }

    .loyalty-barcode-text {
        word-break: break-all;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .loyalty-tier-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .loyalty-tier-item {
        padding: 10px;
        font-size: 10px;
    }

    .account-grid,
    .account-order-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-profile,
    .account-orders,
    .account-order-panel {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .account-profile h2,
    .account-orders h2,
    .account-order-panel h2 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .account-form .btn-primary {
        width: 100%;
        min-height: 48px;
    }

    .order-card {
        padding: 16px;
        border-radius: 10px;
    }

    .order-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-status {
        align-self: flex-start;
    }

    .order-card-items li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
        font-size: 13px;
    }

    .order-card-items li span:first-child {
        width: 100%;
        word-break: break-word;
        color: var(--black);
        font-weight: 500;
    }

    .order-card-items li span:last-child {
        font-weight: 600;
        color: var(--gray-600);
    }

    .order-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 14px;
    }

    .order-card-footer .order-card-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 16px;
        background: var(--white);
        border: 1.5px solid var(--black);
        border-radius: 30px;
        text-decoration: none;
    }

    .account-empty .btn-primary {
        width: 100%;
        max-width: 320px;
    }

    .account-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .account-order-item > span {
        font-weight: 700;
        font-size: 15px;
    }

    .account-order-info p {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--gray-200);
    }

    .account-order-info p:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .account-back-link {
        margin-bottom: 10px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Product detail: opis ispod varijacija (samo mobilno) */
    .product-detail-grid {
        display: flex;
        flex-direction: column;
    }

    .product-gallery {
        display: contents;
    }

    .product-gallery-main {
        order: 1;
    }

    .product-detail-info {
        order: 2;
    }

    .product-detail-description-block {
        order: 3;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
    }

    main,
    .product-catalog,
    .catalog-products,
    .product-grid,
    .product-detail,
    .category-page {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-showcase .product-catalog--compact .product-image {
        height: 132px;
        min-height: 132px;
        max-height: 132px;
    }

    .category-page .product-catalog--compact .product-image {
        height: 112px;
        min-height: 112px;
        max-height: 112px;
    }

    .product-showcase .product-card,
    .category-page .product-card {
        padding: 8px;
    }

    .category-page {
        padding-top: 8px;
        padding-bottom: 40px;
    }

    .category-page .category-header {
        margin-bottom: 8px;
    }

    .category-page .category-header h1 {
        margin-bottom: 8px;
        font-size: 24px;
    }

    /* General mobile improvements for all pages */
    body {
        font-size: 15px;
    }

    h1, .auth-card h1, .category-page .category-header h1 {
        font-size: 26px;
    }

    .auth-page {
        padding: 24px 16px 40px;
        max-width: 100%;
    }

    .auth-card {
        padding: 24px 16px;
    }

    .cart-page,
    .checkout-page,
    .account-page,
    .product-detail,
    .category-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-showcase {
        padding: 32px 0;
    }

    .product-showcase .showcase-header {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .catalog-products,
    .catalog-layout--full .catalog-products,
    .product-catalog--full .catalog-products {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-grid {
        gap: 12px;
    }

    .btn, .btn-primary, .btn-secondary, .btn-detail-variation-add {
        min-height: 44px; /* better touch target */
        font-size: 15px;
    }

    .form-input, .filter-input {
        font-size: 16px; /* prevent zoom on iOS */
        padding: 10px 12px;
    }

    img:not(.product-image img), video {
        max-width: 100%;
        height: auto;
    }

    .logo-image {
        max-width: 100%;
        height: 60px;
        width: auto;
        object-fit: contain;
        object-position: center center;
    }

    .hero-carousel .carousel-track {
        padding-bottom: 100%;
    }

    .product-info h4 {
        font-size: 14px;
        min-height: 42px;
        line-height: 1.4;
    }

    .variation-swatches {
        min-height: 48px;
    }

    .variation-swatch {
        width: 40px;
        height: 40px;
    }

    .variation-swatch--text {
        width: max-content;
        max-width: 100%;
        min-width: 56px;
        min-height: 40px;
        padding: 4px 12px;
    }

    .variation-swatch-label {
        font-size: 10px;
    }

    /* Product detail variations: prevent horizontal overflow on phone */
    .product-detail-variation-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .product-detail-variation-name {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 13px;
    }
    .product-detail-variation-price {
        min-width: 60px;
        font-size: 13px;
        flex: 0 0 auto;
    }
    .product-detail-variation-form {
        min-width: 0;
        flex: 0 0 auto;
        margin-left: auto;
    }
    .btn-detail-variation-add {
        padding: 6px 10px;
        font-size: 13px;
        min-height: 36px;
    }

    .btn-add-to-bag {
        max-width: 100%;
        padding: 14px 24px;
    }

    .carousel-btn {
        display: none;
    }

    .slide-content {
        left: 16px;
        right: 16px;
        bottom: 50px;
        max-width: none;
    }
    .slide-content h2 {
        font-size: 22px;
    }

    .nav {
        padding: 0 10px;
        column-gap: 6px;
    }

    .logo-image {
        height: 58px;
    }

    .nav-actions {
        gap: 0;
    }

    .icon-btn {
        padding: 6px;
    }

    .category-subnav-link {
        font-size: 13px;
        padding: 7px 12px;
    }

    .cart-page {
        padding: 12px 12px 32px;
    }

    .cart-page h1 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        padding: 12px;
        gap: 8px 10px;
    }

    .cart-item-image {
        width: 68px;
        height: 68px;
    }

    .cart-summary {
        padding: 16px 14px;
    }

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

    .checkout-page .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-page {
        padding: 32px 24px 64px;
    }

    .account-page,
    .account-order-page {
        padding: 12px 12px 32px;
    }

    .account-header h1,
    .account-order-header h1 {
        font-size: 24px;
    }

    .loyalty-card {
        padding: 16px 14px;
    }

    .loyalty-card-tier {
        font-size: 24px;
    }

    .loyalty-tier-list {
        grid-template-columns: 1fr;
    }

    .account-profile,
    .account-orders,
    .account-order-panel {
        padding: 16px 14px;
    }

    .order-card {
        padding: 14px;
    }
}

/* Auth */
.auth-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 32px;
}

.auth-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-lead {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-form .btn-block {
    width: 100%;
    margin-top: 8px;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-switch a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
}

.form-errors {
    margin-bottom: 16px;
}

.checkout-auth-note {
    margin: -16px 0 24px;
    font-size: 14px;
    color: var(--gray-600);
}

.checkout-auth-note a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
}

/* Account */
.account-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 48px 48px 80px;
}

.account-order-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.account-header,
.account-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.account-header h1,
.account-order-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.account-greeting,
.account-order-meta {
    color: var(--gray-600);
    font-size: 14px;
}

.account-back-link {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: underline;
}

.account-back-link:hover {
    color: var(--black);
}

.account-grid,
.account-order-grid {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.account-profile,
.account-orders,
.account-order-panel {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 24px;
}

.account-profile h2,
.account-orders h2,
.account-order-panel h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.account-form .btn-primary {
    background: var(--black);
    color: var(--white);
}

.account-form .btn-primary:hover {
    background: #333;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 20px;
}

.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.order-card-head h3 {
    font-size: 16px;
    font-weight: 700;
}

.order-card-date {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 2px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--black);
    white-space: nowrap;
}

.order-status--nova { background: #e8f0ff; }
.order-status--potvrdjena { background: #e8f5ef; }
.order-status--poslana { background: #fff4e5; }
.order-status--zavrsena { background: #e8f5ef; }
.order-status--otkazana { background: #fdeaea; }

.order-card-items {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
}

.order-card-items li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    padding: 4px 0;
    color: var(--gray-600);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 16px;
}

.order-card-link {
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.account-empty {
    text-align: center;
    padding: 32px 16px;
}

.account-empty p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.account-order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.account-order-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.account-order-item-variation,
.account-order-item-meta {
    color: var(--gray-600);
    font-size: 13px;
    margin-top: 2px;
}

.account-order-info p {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    font-size: 14px;
    margin-bottom: 10px;
}

.account-order-info span {
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.order-success-actions .btn-primary {
    background: var(--black);
    color: var(--white);
}

.order-success-actions .btn-primary:hover {
    background: #333;
}

.order-success-actions .btn-secondary {
    color: var(--black);
    border-color: var(--black);
}

.order-success-actions .btn-secondary:hover {
    background: var(--gray-100);
}

.btn-logout {
    background: var(--black);
    color: var(--white) !important;
    border: 1.5px solid var(--black);
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
}

.btn-logout:hover {
    background: #333;
    border-color: #333;
}

.auth-page .btn-primary,
.checkout-page .btn-primary,
.cart-page .btn-primary {
    background: var(--black);
    color: var(--white);
}

/* Loyalty card */
.loyalty-card {
    margin-bottom: 40px;
    padding: 32px 36px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, #6b4f2a 0%, #8b6914 50%, #a67c00 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.loyalty-card--bronza {
    background: linear-gradient(135deg, #5c3d2e 0%, #8b5a3c 50%, #a66b47 100%);
}

.loyalty-card--srebrna {
    background: linear-gradient(135deg, #5a5a5a 0%, #8a8a8a 50%, #b0b0b0 100%);
}

.loyalty-card--zlatna {
    background: linear-gradient(135deg, #7a5a10 0%, #b8860b 50%, #d4af37 100%);
}

.loyalty-card--platinum {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3a5c 50%, #4a5568 100%);
}

.loyalty-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.loyalty-card-label {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.loyalty-card-tier {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.loyalty-card-benefit {
    margin: 8px 0 0;
    font-size: 16px;
    opacity: 0.92;
}

.loyalty-card-stats p {
    margin: 0 0 10px;
    text-align: right;
    font-size: 13px;
}

.loyalty-card-stats span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}

.loyalty-card-stats strong {
    font-size: 18px;
}

.loyalty-card-codes {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.loyalty-code-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 6px;
}

.loyalty-online-code {
    font-size: 28px;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.loyalty-barcode {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 48px;
    margin-bottom: 6px;
}

.loyalty-bar {
    display: block;
    height: 100%;
    background: var(--white);
    min-width: 2px;
}

.loyalty-barcode-text {
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

.loyalty-tier-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.loyalty-tier-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 11px;
    display: grid;
    gap: 2px;
}

.loyalty-tier-item--active {
    background: rgba(255, 255, 255, 0.28);
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.loyalty-tier-item span:first-child {
    font-weight: 700;
    font-size: 12px;
}

/* Coupon */
.coupon-box {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.coupon-box-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.coupon-form-row {
    display: flex;
    gap: 8px;
}

.coupon-form-row .form-input {
    flex: 1;
}

.btn-coupon {
    padding: 12px 16px;
    border-radius: 4px;
    border: 1.5px solid var(--black);
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.btn-coupon:hover {
    background: #333;
}

.coupon-applied {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-600);
}

.coupon-remove-btn {
    margin-left: 8px;
    background: none;
    border: none;
    color: var(--black);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

.coupon-guest-note {
    font-size: 13px;
    color: var(--gray-600);
}

.coupon-guest-note a {
    color: var(--black);
    font-weight: 600;
}

.loyalty-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
}

.loyalty-code-display-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.loyalty-code-display-value {
    display: block;
    font-size: 18px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.loyalty-code-display-tier {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--gray-600);
}

.btn-copy-code {
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1.5px solid var(--black);
    border-radius: 4px;
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-copy-code:hover {
    background: #333;
}

.loyalty-code-hint {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
}

.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
}

.cart-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Site Pop-up */
.site-popup-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.48) 100%
    );
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.site-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.site-popup {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border: 1px solid #ffe8cc;
    border-radius: 12px;
    padding: 16px 16px 16px;
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.12), 0 24px 48px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform var(--transition);
    overflow: hidden;
}

.site-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b00, #ffa500);
}

.site-popup-overlay.is-visible .site-popup {
    transform: translateY(0) scale(1);
}

.site-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #fff4e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff6b00;
    transition: background var(--transition), color var(--transition);
    z-index: 10;
}

.site-popup-close:hover {
    background: #ff6b00;
    color: var(--white);
}

.site-popup-close svg {
    width: 18px;
    height: 18px;
}

.site-popup-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fafafa;
}

.site-popup .site-popup-cta {
    min-width: 200px;
    background: #ff6b00;
    color: var(--white);
    border: none;
}

.site-popup .site-popup-cta:hover {
    background: #e65c00;
    color: var(--white);
}

@media (max-width: 480px) {
    .site-popup {
        padding: 12px 12px 12px;
        max-width: 95%;
    }
}

/* Upsell Popup */
.upsell-popup {
    max-width: 680px;
    text-align: left;
}

.upsell-header {
    text-align: center;
    margin-bottom: 16px;
}

.upsell-header h3 {
    font-size: 20px;
    margin: 0 0 4px;
    color: #ff6b00;
}

.upsell-header p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.upsell-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.upsell-product {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
}

.upsell-image-wrap {
    width: 150px;
    flex-shrink: 0;
}

.upsell-image,
.upsell-image-placeholder {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f8f8;
    display: block;
}

.upsell-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upsell-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
}

.upsell-prices {
    font-size: 14px;
}

.upsell-prices .original {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 12px;
    margin-right: 6px;
}

.upsell-prices .discounted {
    color: #ff6b00;
    font-weight: 700;
}

.upsell-prices .var-note {
    font-size: 11px;
    color: var(--gray-400);
    margin-left: 4px;
}

.upsell-var-select {
    font-size: 12px;
    padding: 4px;
    margin: 4px 0;
    width: 100%;
    max-width: 220px;
}

.upsell-right .btn-small {
    margin-top: 6px;
    font-size: 13px;
    padding: 8px 14px;
    width: auto;
    align-self: flex-start;
}

.upsell-note {
    text-align: center;
    margin-top: 8px;
}

/* Upsell cart banners */
.upsell-cart-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.upsell-cart-banners--banner_iznad {
    margin-bottom: 0;
    flex-shrink: 0;
}

.upsell-cart-banners--banner_ispod {
    margin-top: 12px;
}

.upsell-cart-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.upsell-cart-banner-bg {
    position: absolute;
    inset: 0;
    background-image: var(--upsell-banner-image);
    background-size: cover;
    background-position: center;
}

.upsell-cart-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

.upsell-cart-banner:not([style*="--upsell-banner-image"]) .upsell-cart-banner-bg {
    background: linear-gradient(90deg, #fff8ef 0%, #ffefd9 100%);
}

.upsell-cart-banner:not([style*="--upsell-banner-image"]) .upsell-cart-banner-bg::after {
    display: none;
}

.upsell-cart-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    min-width: 0;
    box-sizing: border-box;
}

.upsell-cart-banner-row--top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.upsell-cart-banner-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--white);
    flex-shrink: 0;
}

.upsell-cart-banner-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upsell-cart-banner-prices--inline {
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 12px;
}

.upsell-cart-banner-prices .original {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 11px;
}

.upsell-cart-banner-prices .discounted {
    color: #ff6b00;
    font-weight: 700;
}

.upsell-cart-banner-row--bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.upsell-cart-banner-discount-large {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #d60000;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.upsell-cart-banner-discount-large--empty {
    visibility: hidden;
    font-size: 0;
}

.upsell-cart-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.upsell-cart-banner-select {
    font-size: 11px;
    padding: 6px 8px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    max-width: 110px;
    min-width: 0;
    background: var(--white);
}

.upsell-cart-banner-btn {
    min-width: 0;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Iznad artikala — jedan red: slika | naziv+cijena | dugme + % u sredini */
.upsell-cart-banner--banner_iznad {
    min-height: 112px;
    position: relative;
}

.upsell-cart-banner-discount-stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) skewX(-14deg) rotate(-8deg);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: #d60000;
    letter-spacing: -0.04em;
    pointer-events: none;
    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.95),
        -1px -1px 0 rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.upsell-cart-banner-content--iznad-row {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    min-height: 112px;
}

.upsell-cart-banner-media {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    align-self: stretch;
}

.upsell-cart-banner-thumb--fill {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    padding: 6px;
    box-sizing: border-box;
}

.upsell-cart-banner-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
}

.upsell-cart-banner-info-row {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.upsell-cart-banner--banner_iznad .upsell-cart-banner-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upsell-cart-banner--banner_iznad .upsell-cart-banner-prices--inline {
    flex-shrink: 0;
    font-size: 18px;
    gap: 10px;
}

.upsell-cart-banner--banner_iznad .upsell-cart-banner-prices .original {
    font-size: 14px;
}

.upsell-cart-banner--banner_iznad .upsell-cart-banner-prices .discounted {
    font-size: 20px;
}

.upsell-cart-banner-content--iznad-row .upsell-cart-banner-actions {
    flex: 0 0 auto;
    margin-left: 0;
    gap: 8px;
}

.upsell-cart-banner--banner_iznad .upsell-cart-banner-select {
    max-width: 150px;
    font-size: 12px;
}

.upsell-cart-banner--banner_iznad .upsell-cart-banner-btn {
    padding: 10px 18px;
    font-size: 13px;
}

/* Ispod "Nastavi na narudžbu" */
.upsell-cart-banner-content--ispod-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
}

.upsell-cart-banner-media--ispod {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 72px;
}

.upsell-cart-banner-ispod-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upsell-cart-banner-name-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upsell-cart-banner-discount-large--beside-name {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    color: #d60000;
    line-height: 1;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-prices--inline {
    margin: 0;
    font-size: 16px;
    gap: 8px;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-prices .original {
    font-size: 13px;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-prices .discounted {
    font-size: 18px;
    font-weight: 700;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    gap: 6px;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-select {
    max-width: 110px;
    padding: 6px 8px;
    font-size: 11px;
}

.upsell-cart-banner--banner_ispod .upsell-cart-banner-btn {
    padding: 8px 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .upsell-cart-banner-row--top {
        flex-wrap: wrap;
    }

    .upsell-cart-banner-title {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    .upsell-cart-banner-prices--inline {
        flex: 0 0 auto;
    }

    .upsell-cart-banner-row--bottom {
        flex-wrap: wrap;
        gap: 6px;
    }

    .upsell-cart-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .upsell-cart-banner-select {
        flex: 1;
        max-width: none;
    }

    .upsell-cart-banner-btn {
        flex: 1;
    }

    .upsell-cart-banner-content--ispod-row {
        flex-wrap: wrap;
    }

    .upsell-cart-banner-media--ispod {
        width: 64px;
        height: 64px;
        min-height: 64px;
    }

    .upsell-cart-banner--banner_ispod .upsell-cart-banner-title {
        white-space: normal;
    }

    .upsell-cart-banner--banner_ispod .upsell-cart-banner-actions {
        flex-wrap: wrap;
    }

    /* Upsell iznad korpe — mobilni layout */
    .upsell-cart-banner--banner_iznad {
        min-height: 0;
        overflow: hidden;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-discount-stamp {
        left: auto;
        right: 10px;
        top: 8px;
        transform: skewX(-12deg) rotate(-6deg);
        font-size: 26px;
        z-index: 3;
    }

    .upsell-cart-banner-content--iznad-row {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "media info"
            "actions actions";
        gap: 10px 12px;
        align-items: start;
        min-height: 0;
        padding: 12px 12px 12px;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-media {
        grid-area: media;
        width: 76px;
        height: 76px;
        min-height: 76px;
        align-self: start;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-info-row {
        grid-area: info;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-right: 56px;
        min-width: 0;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-title {
        flex: none;
        width: 100%;
        white-space: normal;
        font-size: 14px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-prices--inline {
        flex-wrap: wrap;
        font-size: 15px;
        gap: 8px;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-prices .original {
        font-size: 12px;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-prices .discounted {
        font-size: 18px;
    }

    .upsell-cart-banner-content--iznad-row .upsell-cart-banner-actions {
        grid-area: actions;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-select {
        width: 100%;
        max-width: none;
        font-size: 14px;
        min-height: 44px;
    }

    .upsell-cart-banner--banner_iznad .upsell-cart-banner-btn {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Checkout — poslednja šansa upsell */
.checkout-upsell {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.checkout-upsell-block + .checkout-upsell-block {
    margin-top: 16px;
}

.checkout-upsell-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.checkout-upsell-subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}

.checkout-upsell-card {
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 10px;
}

.checkout-upsell-card:last-child {
    margin-bottom: 0;
}

.checkout-upsell-card-bg {
    position: absolute;
    inset: 0;
    background-image: var(--checkout-upsell-banner);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.checkout-upsell-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
        "media info"
        "actions actions";
    gap: 10px 12px;
    align-items: start;
    padding: 12px;
}

.checkout-upsell-media {
    grid-area: media;
    width: 72px;
    height: 72px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-upsell-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.checkout-upsell-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
}

.checkout-upsell-info {
    grid-area: info;
    min-width: 0;
}

.checkout-upsell-name-discount {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    margin-bottom: 6px;
}

.checkout-upsell-name {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

.checkout-upsell-discount {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #d60000;
}

.checkout-upsell-prices {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.checkout-upsell-prices .original {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 12px;
}

.checkout-upsell-prices .discounted {
    color: #ff6b00;
    font-weight: 700;
    font-size: 16px;
}

.checkout-upsell-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.checkout-upsell-select {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    min-height: 44px;
}

.checkout-upsell-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
}

@media (max-width: 768px) {
    .checkout-upsell-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-upsell-btn {
        width: 100%;
    }
}