:root {
    --cadro-red: #c41e3a;
    --cadro-orange: #ff6f00;
    --cadro-yellow: #f9a825;
    --cadro-dark: #2d1b1b;
    --cadro-brown-600: #5d4037;
    --cadro-brown-800: #3e2723;
    --cadro-beige: #f5f1e6;
    --cadro-white: #ffffff;
    --cadro-muted: #9e8f85;
    --shadow-lg: 0 20px 45px -20px rgba(196, 30, 58, 0.35);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.18);
    --transition: 220ms ease;
    --max-width: 1200px;
}

/* position helpers */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

/* offsets */
.right-0 {
    right: 0 !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

/* sizing */
.w-48 {
    width: 12rem !important;
}

/* borders & radius */
.rounded-lg {
    border-radius: 0.75rem !important;
}

.border {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.border-slate-200 {
    border-color: rgb(226, 232, 240) !important;
}

/* backgrounds / text */
.bg-white {
    background: #ffffff !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-slate-600 {
    color: rgb(71, 85, 105) !important;
}

/* padding */
.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* shadow */
.shadow-lg {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
}

/* hide/show */
.hidden {
    display: none !important;
}

/* mobile sidebar overlay */
.mobile-sidebar-overlay {
    display: none;
}

.mobile-sidebar {
    display: none;
}

/* hover utilities */
.hover\:bg-red-50:hover {
    background-color: rgba(254, 226, 226, 1) !important;
}

.hover\:text-red-600:hover {
    color: #dc2626 !important;
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--cadro-beige), #fff);
    color: var(--cadro-brown-800);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

/* --------------------------------------------------
   Utilitaires globaux
--------------------------------------------------- */
.hidden {
    display: none !important;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.right-0 {
    right: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 0.75rem !important;
}

.w-48 {
    width: 12rem !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

.border {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.border-slate-200 {
    border-color: rgb(226, 232, 240) !important;
}

.bg-white {
    background: #ffffff !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-slate-600 {
    color: rgb(71, 85, 105) !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.shadow-lg {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
}

.hover\:bg-red-50:hover {
    background-color: rgba(254, 226, 226, 1) !important;
}

.hover\:text-red-600:hover {
    color: #dc2626 !important;
}

.no-scroll {
    overflow: hidden;
}

.muted {
    color: var(--cadro-muted);
}

.stack-16 {
    display: grid;
    gap: 16px;
}

.stack-20 {
    display: grid;
    gap: 20px;
}

.stack-24 {
    display: grid;
    gap: 24px;
}

.stack-28 {
    display: grid;
    gap: 28px;
}

.stack-32 {
    display: grid;
    gap: 32px;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: flex-start;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.sticky-card {
    position: sticky;
    top: 120px;
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 28px;
}

.card-accent {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), rgba(255, 111, 0, 0.14));
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-soft {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 18px 20px;
    font-size: 14px;
    color: var(--cadro-brown-600);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cadro-brown-600);
    margin-bottom: 6px;
}

.media-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
    background: #fff;
}

.media-frame--dark {
    background: #000;
}

.media-frame img,
.media-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pill-limited {
    background: rgba(196, 30, 58, 0.12);
    color: var(--cadro-red);
}

.pill-soft {
    background: rgba(196, 30, 58, 0.12);
    color: var(--cadro-red);
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 12px;
}

.info-pill {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--cadro-brown-600);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.metrics-grid .info-pill {
    width: 100%;
    justify-content: space-between;
}

.price-highlight {
    font-size: 34px;
    font-weight: 800;
    color: var(--cadro-red);
}

.price-strike {
    font-size: 16px;
    text-decoration: line-through;
    color: rgba(61, 40, 34, 0.55);
}

.alert-soft {
    padding: 14px;
    border-radius: 14px;
    background: rgba(196, 30, 58, 0.12);
    color: var(--cadro-red);
    font-weight: 600;
    text-align: center;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cadro-yellow), var(--cadro-orange));
    color: var(--cadro-brown-800);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -18px rgba(196, 30, 58, 0.65);
}

header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: saturate(1.08) blur(6px);
    background: linear-gradient(180deg, rgba(61, 40, 34, 0.96), rgba(93, 64, 55, 0.88));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.layout-container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-top {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cadro-white);
    text-decoration: none;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cadro-red), var(--cadro-orange));
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    font-weight: 700;
    font-size: 20px;
    color: var(--cadro-white);
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title span:first-child {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-title span:last-child {
    font-size: 12px;
    color: var(--cadro-beige);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.search-bar {
    flex: 1;
    max-width: 560px;
    margin: 0 18px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 11px 46px 11px 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: box-shadow var(--transition), border-color var(--transition);
    font-size: 14px;
    color: var(--cadro-brown-800);
}

.search-bar input::placeholder {
    color: rgba(93, 64, 55, 0.68);
}

.search-bar input:focus {
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.12);
    border-color: var(--cadro-red);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    border: none;
    background: linear-gradient(135deg, var(--cadro-yellow), var(--cadro-orange));
    color: var(--cadro-brown-800);
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

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

.user-actions .cart-link {
    color: var(--cadro-yellow);
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--cadro-red);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
}

.account-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cadro-white);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.account-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-wrap {
    background: linear-gradient(90deg, var(--cadro-yellow), var(--cadro-orange));
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--cadro-brown-800);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(0, 0, 0, 0.08);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--cadro-white);
    font-size: 22px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

.dropdown-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.06), rgba(255, 111, 0, 0.06));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cadro-red), var(--cadro-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cadro-white);
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.dropdown-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--cadro-brown-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 12px;
    color: var(--cadro-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--cadro-brown-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--cadro-muted);
    transition: color var(--transition);
}

.dropdown-item:hover {
    background: rgba(196, 30, 58, 0.04);
    color: var(--cadro-red);
}

.dropdown-item:hover svg {
    color: var(--cadro-red);
}

.dropdown-item--danger {
    color: var(--cadro-red);
}

.dropdown-item--danger svg {
    color: var(--cadro-red);
}

.dropdown-item--danger:hover {
    background: rgba(196, 30, 58, 0.08);
    color: #B01727;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-field {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 14px;
    outline: none;
    transition: box-shadow var(--transition), border-color var(--transition);
    background: #fff;
    color: var(--cadro-brown-800);
}

.form-field:focus {
    border-color: var(--cadro-red);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.15);
}

.form-field--small {
    width: 90px;
}

.form-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    accent-color: var(--cadro-red);
}

.auth-section {
    margin-top: 80px;
}

.auth-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.auth-intro {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(255, 111, 0, 0.12));
    border-radius: 22px;
    padding: 32px;
    display: grid;
    gap: 18px;
}

.auth-intro h1 {
    font-size: 30px;
    margin: 0;
    color: var(--cadro-brown-800);
}

.auth-intro p {
    margin: 0;
    color: var(--cadro-brown-600);
    line-height: 1.6;
}

.auth-intro ul {
    margin: 0;
    padding-left: 20px;
    color: var(--cadro-brown-600);
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.auth-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 34px;
    display: grid;
    gap: 18px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cadro-brown-600);
}

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

.form-error {
    border-radius: 12px;
    border: 1px solid rgba(196, 30, 58, 0.35);
    background: rgba(196, 30, 58, 0.12);
    color: var(--cadro-red);
    padding: 12px 14px;
    font-size: 13px;
}

.field-error {
    font-size: 12px;
    color: var(--cadro-red);
    margin: 0;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--cadro-muted);
}

.auth-switch a {
    color: var(--cadro-red);
    font-weight: 600;
    text-decoration: none;
}

.home-section {
    margin: 64px auto;
    width: 92%;
    max-width: var(--max-width);
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading--spacious {
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--cadro-brown-800);
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--cadro-muted);
    max-width: 680px;
    margin: 0 auto;
}

.section-heading--spacious {
    margin-bottom: 40px;
}

.section-heading--left {
    text-align: left;
}

.section-heading--left p {
    margin-left: 0;
}

.heading-xl {
    font-size: 30px;
    color: var(--cadro-brown-800);
    margin: 0;
}

.heading-lg {
    font-size: 32px;
    color: var(--cadro-brown-800);
    margin: 14px 0 8px;
}

.text-body {
    color: var(--cadro-brown-600);
    font-size: 15px;
    line-height: 1.6;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.category-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: var(--cadro-brown-600);
    background: rgba(0, 0, 0, 0.04);
    transition: background var(--transition), color var(--transition);
}

.category-link:hover {
    background: rgba(196, 30, 58, 0.12);
    color: var(--cadro-brown-800);
}

.category-link--active {
    background: linear-gradient(135deg, var(--cadro-red), var(--cadro-orange));
    color: var(--cadro-white);
}

.category-link--active:hover {
    color: var(--cadro-white);
}

.category-meta {
    font-weight: 400;
    font-size: 12px;
    color: rgba(61, 40, 34, 0.56);
    margin-left: 6px;
}

.empty-state {
    text-align: center;
    padding: 48px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
}

.media-placeholder {
    height: 380px;
    display: grid;
    place-items: center;
    color: var(--cadro-muted);
    font-size: 14px;
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 18px 20px;
}

.accordion-item summary {
    font-size: 16px;
    font-weight: 700;
    color: var(--cadro-brown-800);
    cursor: pointer;
}

.accordion-item p {
    margin: 12px 0 0;
    color: var(--cadro-muted);
    font-size: 14px;
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.product-card {
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.75));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 190px;
    background: linear-gradient(180deg, #fafafa, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

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

.product-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-category {
    color: var(--cadro-orange);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--cadro-brown-800);
    margin: 0;
}

.product-desc {
    font-size: 13px;
    color: var(--cadro-muted);
}

.product-lower {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-weight: 800;
    color: var(--cadro-red);
    font-size: 18px;
}

.product-lower a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--cadro-red);
}

.hero-modern {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(255, 111, 0, 0.06));
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.12);
    color: var(--cadro-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--cadro-brown-800);
    margin: 0;
}

.hero-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--cadro-brown-600);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--cadro-red);
    color: var(--cadro-red);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--cadro-red);
    color: var(--cadro-white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--cadro-red);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--cadro-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 24px 60px -12px rgba(196, 30, 58, 0.35);
    position: relative;
    z-index: 2;
}

.hero-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cadro-yellow), var(--cadro-orange));
    opacity: 0.3;
    filter: blur(60px);
    z-index: 1;
}

.feature-section {
    background: #fff;
    padding: 42px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cadro-yellow), var(--cadro-orange));
    display: grid;
    place-items: center;
    color: var(--cadro-brown-800);
    font-size: 22px;
}

.feature-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--cadro-brown-800);
}

.feature-card p {
    margin: 6px 0 0;
    color: var(--cadro-muted);
    font-size: 14px;
}

.promo-banner {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.04), rgba(255, 111, 0, 0.04));
    border: 2px solid rgba(196, 30, 58, 0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px -8px rgba(196, 30, 58, 0.15);
}

.promo-content {
    padding: 32px;
}

.promo-header {
    text-align: center;
    margin-bottom: 32px;
}

.promo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cadro-red), var(--cadro-orange));
    color: var(--cadro-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.promo-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--cadro-brown-800);
    margin: 0 0 12px;
}

.promo-description {
    font-size: 15px;
    color: var(--cadro-brown-600);
    max-width: 600px;
    margin: 0 auto;
}

.promo-body {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.promo-product {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.promo-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.promo-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--cadro-yellow), var(--cadro-orange));
    color: var(--cadro-brown-800);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.promo-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.promo-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-product-category {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 111, 0, 0.12);
    color: var(--cadro-orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.promo-product-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--cadro-brown-800);
    margin: 0;
}

.promo-product-desc {
    font-size: 14px;
    color: var(--cadro-muted);
    line-height: 1.6;
}

.promo-pricing {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.06), rgba(255, 111, 0, 0.06));
    border-radius: 14px;
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--cadro-red);
    line-height: 1;
}

.old-price {
    font-size: 18px;
    color: var(--cadro-muted);
    text-decoration: line-through;
}

.discount-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cadro-red);
    color: var(--cadro-white);
    font-size: 13px;
    font-weight: 800;
}

.promo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cadro-brown-600);
}

.meta-item svg {
    color: var(--cadro-orange);
}

.promo-cta {
    width: 100%;
    justify-content: center;
}

.newsletter {
    background: linear-gradient(180deg, var(--cadro-brown-800), var(--cadro-brown-600));
    color: var(--cadro-white);
    padding: 46px 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.newsletter p {
    max-width: 520px;
    margin: 12px auto 22px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    min-width: 260px;
    flex: 1 1 280px;
    outline: none;
}

.newsletter-form button {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cadro-yellow), var(--cadro-orange));
    color: var(--cadro-brown-800);
    font-weight: 700;
    cursor: pointer;
}

.messages-wrapper {
    margin: 24px auto 0;
    width: 92%;
    max-width: var(--max-width);
}

.message-card {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.18);
    border-left: 6px solid transparent;
}

.message-info {
    background: rgba(249, 168, 37, 0.18);
    border-left-color: var(--cadro-orange);
    color: var(--cadro-brown-800);
}

.message-success {
    background: rgba(34, 197, 94, 0.16);
    border-left-color: #15803d;
    color: #166534;
}

.message-error {
    background: rgba(244, 63, 94, 0.16);
    border-left-color: #be123c;
    color: #9f1239;
}

@media (max-width: 960px) {
    .search-bar {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

    .nav-wrap {
        display: none;
    }

    /* Hero Section Mobile */
    .hero-modern {
        padding: 40px 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }

    .hero-text {
        gap: 20px;
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-title {
        font-size: clamp(28px, 7vw, 38px);
        line-height: 1.2;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Promo Banner Mobile */
    .promo-banner {
        border-radius: 16px;
    }

    .promo-content {
        padding: 20px;
    }

    .promo-header {
        margin-bottom: 24px;
    }

    .promo-title {
        font-size: 22px;
    }

    .promo-description {
        font-size: 14px;
    }

    .promo-body {
        padding: 20px;
    }

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

    .current-price {
        font-size: 26px;
    }

    .old-price {
        font-size: 16px;
    }

    /* Sections Mobile */
    .home-section {
        padding: 40px 20px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .section-heading p {
        font-size: 14px;
    }

    /* Product Grid Mobile */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Feature Grid Mobile */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 16px;
    }

    /* Newsletter Mobile */
    .newsletter {
        padding: 32px 24px;
    }

    .newsletter h2 {
        font-size: 22px;
    }

    .newsletter p {
        font-size: 14px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        background: var(--cadro-white);
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        flex-direction: column;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-sidebar.open {
        left: 0;
    }

    .mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background: linear-gradient(135deg, var(--cadro-red), var(--cadro-orange));
        color: var(--cadro-white);
    }

    .mobile-sidebar-close {
        background: transparent;
        border: none;
        color: var(--cadro-white);
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background var(--transition);
    }

    .mobile-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .mobile-sidebar-content {
        flex: 1;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .mobile-nav-section {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-nav-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--cadro-muted);
        margin-bottom: 8px;
        padding: 0 12px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 12px;
        color: var(--cadro-brown-800);
        text-decoration: none;
        font-weight: 500;
        border-radius: 12px;
        transition: background var(--transition), color var(--transition);
    }

    .mobile-nav-link svg {
        width: 20px;
        height: 20px;
        color: var(--cadro-muted);
        transition: color var(--transition);
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(255, 111, 0, 0.08));
        color: var(--cadro-red);
    }

    .mobile-nav-link:hover svg,
    .mobile-nav-link.active svg {
        color: var(--cadro-red);
    }

    .mobile-user-card {
        padding: 16px;
        background: linear-gradient(135deg, rgba(196, 30, 58, 0.06), rgba(255, 111, 0, 0.06));
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .mobile-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--cadro-red), var(--cadro-orange));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--cadro-white);
        flex-shrink: 0;
    }

    .mobile-user-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        overflow: hidden;
    }

    .mobile-user-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--cadro-brown-800);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-user-email {
        font-size: 12px;
        color: var(--cadro-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-toggle {
        display: block;
    }

    .header-top {
        padding: 10px 0;
        gap: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Tablette (601px - 960px) */
@media (min-width: 601px) and (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px;
    }

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

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

    .promo-product {
        grid-template-columns: 1fr;
    }

    .home-section {
        padding: 50px 40px;
    }
}

/* Petits mobiles (max 600px) */
@media (max-width: 600px) {
    .hero-title br {
        display: none;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-desc {
        font-size: 13px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .promo-title {
        font-size: 20px;
    }

    .promo-product-name {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

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

    .meta-item svg {
        width: 14px;
        height: 14px;
    }

    /* Checkout Page Mobile */
    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .checkout-form {
        order: 1;
    }

    .checkout-summary {
        order: 2;
        position: static !important;
    }

    /* Catalogue Sidebar Mobile */
    .layout-with-sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .sticky-card {
        position: static !important;
        order: 1;
    }

    .sticky-card .card-body {
        padding: 20px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-link {
        white-space: nowrap;
    }

    /* Cart Page Mobile */
    .cart-layout {
        display: flex !important;
        flex-direction: column;
        gap: 24px;
    }

    .cart-items {
        order: 1;
    }

    .cart-summary {
        order: 2;
        position: static !important;
    }

    .cart-item {
        padding: 16px;
    }

    .cart-item-name {
        font-size: 16px;
    }

    .cart-item-desc {
        font-size: 13px;
    }

    .cart-item-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .cart-quantity-form {
        width: 100%;
        justify-content: space-between;
    }

    .cart-quantity-input {
        flex: 0 0 80px;
        width: 80px;
    }

    .cart-update-btn {
        flex: 1;
        text-align: right;
    }

    .cart-item-total {
        text-align: left !important;
        padding: 12px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-total-label {
        font-size: 13px;
    }

    .cart-item-total-value {
        font-size: 20px;
    }

    .cart-remove-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.02);
        font-size: 14px !important;
        color: var(--cadro-brown-600) !important;
    }

    .cart-clear-btn {
        display: inline-block;
        width: 100%;
        padding: 12px 16px;
        background: rgba(196, 30, 58, 0.08);
        border-radius: 8px;
        font-size: 14px;
        text-align: center;
    }

    .empty-cart {
        padding: 40px 20px;
    }

    .empty-cart-title {
        font-size: 20px;
    }

    .empty-cart-desc {
        font-size: 14px;
    }

    /* Checkout Page Mobile - Override */
    .checkout-layout {
        display: flex !important;
        flex-direction: column;
    }
}

/* Tablette (601px - 960px) */
@media (min-width: 601px) and (max-width: 960px) {
    /* Cart et Checkout en colonne sur tablette */
    .cart-layout,
    .checkout-layout {
        display: flex !important;
        flex-direction: column;
        gap: 24px;
    }

    .cart-summary,
    .checkout-summary {
        position: static !important;
    }
}

/* Desktop Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.cart-items {
    display: grid;
    gap: 18px;
}

.cart-item {
    padding: 20px;
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name {
    margin: 0;
    font-size: 18px;
    color: var(--cadro-brown-800);
    font-weight: 700;
}

.cart-item-desc {
    margin: 0;
    color: var(--cadro-muted);
    font-size: 14px;
}

.cart-item-price {
    margin: 0;
    font-size: 13px;
    color: var(--cadro-brown-600);
}

.cart-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-input {
    width: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: 600;
    font-size: 14px;
}

.cart-update-btn {
    background: none;
    border: none;
    color: var(--cadro-red);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cart-update-btn:hover {
    opacity: 0.8;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--cadro-muted);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: var(--cadro-red);
}

.cart-item-total {
    text-align: right;
}

.cart-item-total-label {
    font-size: 12px;
    color: var(--cadro-muted);
}

.cart-item-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--cadro-red);
}

.cart-clear-form {
    padding-top: 8px;
}

.cart-clear-btn {
    background: none;
    border: none;
    color: var(--cadro-red);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cart-clear-btn:hover {
    opacity: 0.8;
}

.cart-summary {
    height: max-content;
    position: sticky;
    top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 56px 20px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
}

.empty-cart-title {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--cadro-brown-800);
}

.empty-cart-desc {
    margin: 0 0 22px;
    color: var(--cadro-muted);
}

/* Desktop Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.checkout-summary {
    height: max-content;
    position: sticky;
    top: 20px;
}

/* Summary Styles */
.summary-items {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--cadro-brown-600);
}

.summary-item-name {
    font-weight: 700;
    color: var(--cadro-brown-800);
}

.summary-item-qty {
    font-size: 12px;
    color: var(--cadro-muted);
}

.summary-item-price {
    font-weight: 700;
    color: var(--cadro-red);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--cadro-brown-600);
    margin-bottom: 8px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--cadro-brown-800);
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* une classe mobile-only */
.mobile-only {
    display: none;
}
@media (max-width: 600px) {
    .mobile-only {
        display: block;
    }
}