/* Style.css */

/* Font Face for Roboto Regular */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
        url('../fonts/Roboto-Regular.woff') format('woff'),
        url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Roboto Bold */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
        url('../fonts/Roboto-Bold.woff') format('woff'),
        url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Roboto Black */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Black.woff2') format('woff2'),
        url('../fonts/Roboto-Black.woff') format('woff'),
        url('../fonts/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    /* Typically, 900 is used for Black weight */
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    --font-family: 'Roboto', sans-serif;
}

/* Reset Styles */
html,
body,
div,
span,
iframe,
small,
strong,
center,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
blockquote,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
figure,
footer,
header,
summary,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body.has-bg .category-container h2 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

/* Body Styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1;
    padding: 0;
    background: #212529;
    overflow-x: hidden;
    transition: padding 0.3s ease-in-out;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    text-transform: uppercase;
}

h1 {
    font-size: 1.7em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5 {
    font-size: 1em
}

h6 {
    font-size: 1em;
}

.flex-1 {
    flex: 1;
}

.parallax-bg {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
}

body:not(.has-bg) .parallax-bg {
    background: #f9f9f9;
}

body:not(.has-bg)[data-layout="list"] .parallax-bg {
    background: #fff;
}

body.has-bg .parallax-bg {
    background: url('/images/bg/bluish-gradient.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
}

body.has-bg .overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Semi-transparent black overlay */
    pointer-events: none;
    /* Ensure the overlay doesn't interfere with interactions */
    z-index: 0;
    /* Ensure the overlay is above the background but below other content */
}

body[data-overlay="0"] .overlay {
    display: none;
}


body>* {
    position: relative;
    z-index: 1;
    /* Ensure content is above the overlay */
}

/* Sticky menu */
.sticky-menu {
    position: fixed;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    inset-inline-start: 0;
    inset-inline-end: 0;
    visibility: hidden;
    opacity: 0;
    transition: top 0.3s ease-in-out;
    z-index: 100001;
}

.is-scrolled[data-theme="minimal"] .sticky-menu,
.is-scrolled[data-theme="natural"] .sticky-menu {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.sticky-menu.active {
    top: 0;
}

.menu-button {
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    line-height: 0;
    padding: 0;
    border-radius: 19px;
    background: transparent;
}

.sticky-menu .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    margin-top: 3px;
    right: 10px;
    padding: 10px;
    min-width: 150px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.sticky-menu .nav-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sticky-menu .nav-menu a {
    text-decoration: none;
    color: #222;
}

.sticky-menu .nav-menu a:hover {
    color: #111;
}

.sticky-menu .nav-menu>a:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 5px;
    padding-bottom: 8px;
}

.search-btn-sticky {
    background: none;
    border: none;
    color: var(--block-bg-color, #fff);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-scrolled[data-theme="minimal"] .search-btn-sticky,
.is-scrolled[data-theme="natural"] .search-btn-sticky {
    color: var(--block-text-color, #333);
}

.sticky-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #fff);
    /* Or var(--block-bg-color) */
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1200;
    /* Above hamburger */
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

#product-search-input {
    flex: 1;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    /* Theme adaptive? */
    color: var(--block-text-color, #000);
    outline: none;
    font-size: 16px;
}

#search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--block-text-color, #555);
    cursor: pointer;
    padding: 0 10px 5px 10px;
    margin-left: 5px;
}

/* Hamburger Button */
label.hamburger-button {
    display: flex;
    flex-direction: column;
    width: 36px;
    cursor: pointer;
}

label.hamburger-button span {
    background: #868686;
    border-radius: 6px;
    height: 3px;
    margin: 3px 0;
    transition: .4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

body.has-bg label.hamburger-button span {
    background: #ffffff;
}

label.hamburger-button span:nth-of-type(1) {
    width: 50%;
}

label.hamburger-button span:nth-of-type(2) {
    width: 84%;
}

label.hamburger-button span:nth-of-type(3) {
    width: 75%;
}

label.hamburger-button input[type="checkbox"] {
    display: none;
}

label.hamburger-button input[type="checkbox"]:checked~span:nth-of-type(1) {
    transform-origin: bottom;
    transform: rotatez(45deg) translate(4px, 0px);
}

label.hamburger-button input[type="checkbox"]:checked~span:nth-of-type(2) {
    transform-origin: top;
    transform: rotatez(-45deg) translate(1px, 0px);
}

label.hamburger-button input[type="checkbox"]:checked~span:nth-of-type(3) {
    transform-origin: bottom;
    width: 50%;
    transform: translate(12px, -6px) rotatez(45deg);
}

/* footer */
.footer {
    margin-top: 20px;
    margin-bottom: 90px;
}

.footer,
.footer a {
    font-size: 12px;
    color: #333;
    text-align: center;
    font-family: sans-serif;
    line-height: 16px;
    direction: ltr;
    /* s’adapte à rtl si ton html a dir="rtl" */
}

body.webview .loader-overlay {
    display: none;
}

body.webview .footer,
body.webview .footer .powered strong,
body.webview .footer a {
    color: #444 !important;
    text-decoration: none;
}

body.webview .footer a:hover {
    text-decoration: underline;
}

.footer span {
    margin-block: 2px;
}

.footer .sep {
    margin: 0 2px;
}

.footer .powered strong,
.footer .powered a {
    color: #fff;
    font-weight: 600;
}

.footer small {
    font-size: 11px;
}

body[data-theme="default"] .footer .powered strong {
    color: unset;
}

/* Webview */
body.webview .parallax-bg,
body.webview .sticky-menu,
body.webview .frame-decoration {
    display: none;
}

body.webview {
    background: #fbfbfb;
}

/* Intro Video Styles */
.intro-video-container {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    /* Ensure it is on top of all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure the video covers the entire container */
}

.hidden {
    display: none;
}

.fade-out-zoom-in {
    animation: fadeOutZoomIn .3s forwards;
}

.zoom-in {
    animation: zoomIn .5s forwards;
    transform-origin: center center;
    /* Set the transform origin to the center */
    height: 100vh;
    /* Ensure the main container fits within the viewport */
    overflow: hidden;
    /* Prevent overflow during the transition */
}

@keyframes fadeOutZoomIn {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.1);
        /* Slight zoom-in effect */
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: rgb(247, 247, 247);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    pointer-events: none;
}

.loader-overlay>img {
    position: absolute;
    width: 64px;
}

.spinner {
    border: 3px solid rgba(.0, 0, 0, 0.2);
    border-top: 3px solid #D2042D;
    border-radius: 50%;
    width: 82px;
    height: 82px;
    animation: spin 1s linear infinite;
}

/* Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*
.is-scrolled[data-theme="minimal"] .sticky-menu.active .hamburger-button,
.is-scrolled[data-theme="natural"] .sticky-menu.active .hamburger-button {
    background-color: var(--block-bg-color);
    padding: 7px 2px 7px 7px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 44px;
    transition: all 0.3s ease-in-out;
    position: fixed;
    left: 32px;
    top: 19px;
}*/

.is-scrolled[data-theme="minimal"] .sticky-menu.active .hamburger-button span,
.is-scrolled[data-theme="natural"] .sticky-menu.active .hamburger-button span {
    background-color: var(--block-text-color, #000000) !important;
    box-shadow: none;
}

/*
.is-scrolled[data-theme="minimal"] .sticky-menu.active .hamburger-button.active,
.is-scrolled[data-theme="natural"] .sticky-menu.active .hamburger-button.active {
    padding-left: 4px;
    padding-top: 8px;
}*/

/* --- Bottom Navigation & Cart Styles --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e8e8e;
    font-size: 11px;
    flex: 1;
    height: 100%;
}

.nav-item.active {
    color: #222;
    font-weight: 500;
}

.nav-item svg {
    margin-bottom: 4px;
    stroke-width: 2px;
}

.icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Cart Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 200000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.cart-item-price {
    font-size: 0.9em;
    color: #777;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-inc,
.cart-dec {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

.checkout-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Generic Add to Cart Button (to be used in templates) */
.add-to-cart-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
    transition: transform 0.1s, background-color 0.2s;
    font-size: 20px;
    line-height: 1;
    z-index: 10;
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.add-to-cart-btn.clicked {
    background-color: #4CAF50;
    color: #fff;
}

/* Dark Mode Overrides
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: #1e1e1e;
        border-top-color: #333;
    }

    .nav-item {
        color: #888;
    }

    .nav-item.active {
        color: #fff;
    }

    .modal-content {
        background: #1e1e1e;
        color: #fff;
    }

    .modal-header,
    .modal-footer {
        border-color: #333;
    }

    .modal-header h2 {
        color: #fff;
    }

    .cart-item {
        border-bottom-color: #333;
    }

    .cart-item-name {
        color: #fff;
    }

    .cart-item-price {
        color: #aaa;
    }

    .cart-inc,
    .cart-dec {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    .checkout-btn {
        background: #fff;
        color: #000;
    }

    .close-btn {
        color: #aaa;
    }
}
*/

/* Adjust main content padding to account for bottom bar */
body {
    padding-bottom: 60px;
    /* Space for nav */
}

/* --- Layout Adjustments for Cart Buttons (UPDATED) --- */

/* Grid Layout Details - Flex Row for Price/Button */
.grid-item-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

/* Inline Grid Button (Next to Price) */
.btn-grid-inline {
    width: 34px;
    height: 34px;
    background: #f0f0f0;
    color: #333;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-grid-inline:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

/* List Layout */
.list-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 80px;
    justify-content: center;
}

/* Default List Button */
.btn-list {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}

/* --- THEME SPECIFIC OVERRIDES --- */

/* Golden Theme - List Layout */
[data-theme="golden"] .list-item-actions {
    justify-content: flex-start;
    /* Align top with title/price */
    padding-top: 5px;
}

[data-theme="golden"] .btn-list {
    background: linear-gradient(135deg, #d4af37 0%, #a88622 100%);
    border: 1px solid #8a6e1c;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    /* Circle in Golden */
    width: 36px;
    height: 36px;
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .btn-list {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    /* Golden override in dark mode */
    [data-theme="golden"] .btn-list {
        background: linear-gradient(135deg, #d4af37 0%, #a88622 100%);
        color: #fff;
    }
}

/* IGNORE OLD CSS BELOW */
.old-css-marker {
    display: none;
}




.grid-item-media .add-to-cart-btn:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

/* If no image, ensure consistent placement or flow */
.grid-item.inline .grid-item-media .add-to-cart-btn {
    position: static;
    /* In inline text mode, maybe flow it? */
    float: right;
    margin-left: 10px;
    margin-bottom: 5px;
    box-shadow: none;
    background: #f5f5f5;
}

/* List Layout */
.list-item-actions {
    display: flex;
    flex-direction: column;
    /* Stack price and button on mobile? Or row? */
    align-items: flex-end;
    gap: 8px;
    min-width: 80px;
    /* Ensure space for price area */
}

@media (min-width: 480px) {
    .list-item-actions {
        flex-direction: row;
        align-items: center;
    }
}

.btn-list {
    position: static;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .grid-item-media .add-to-cart-btn {
        background-color: #333;
        color: #fff;
    }

    .btn-list {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    .grid-item.inline .grid-item-media .add-to-cart-btn {
        background: #444;
    }
}

/* Category Modal Links */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-link-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: none;
    border-radius: 12px;
    text-align: left;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cat-link-btn:active {
    background: #e0e0e0;
}

/* Dark Mode categories */
@media (prefers-color-scheme: dark) {
    .cat-link-btn {
        background: #2a2a2a;
        color: #fff;
    }

    .cat-link-btn:active {
        background: #444;
    }
}

/* Success Animation */
.btn-success-anim {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.btn-success-anim svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: checkmarkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sent Orders History */
.sent-orders-container {
    background: #fff8e1;
    color: #000;
    border: 1px solid #ffeebb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.sent-orders-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d39e00;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sent-order-batch {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e6dbb9;
}

.sent-order-batch:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sent-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 4px;
}

.sent-qty {
    font-weight: bold;
    margin-right: 5px;
}

.new-order-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.new-order-label {
    background: white;
    padding: 2px 10px;
    color: rgb(var(--accent-color));
    font-size: 0.8rem;
    position: relative;
    top: -10px;
    font-weight: bold;
    border-radius: 4px;
}

/* --- PRODUCT FULL POPUP (LIGHT THEME) --- */
.product-full-popup {
    position: fixed;
    top: 60px;
    bottom: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);

    /* Animation et Visibility (Fix Bug Clic) */
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.3s;

    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    /* Important pour le radius */
}

.product-full-popup.visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0s;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popup-image-container {
    width: 100%;
    height: 40vh;
    /* Image prend 40% de la hauteur */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-details {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    background: #fff;
}

.popup-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 800;
    line-height: 1.2;
}

.popup-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Barre d'action en bas (Gris clair pour différencier) */
.popup-actions {
    padding: 15px 20px;
    background: #f4f6f8;
    border-top: 1px solid #e1e4e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 15px;
}

.popup-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #222;
}

/* Correction du Bouton (Reset des styles .add-to-cart-btn parasites) */
.product-full-popup .popup-add-btn {
    background: #222;
    /* Noir 'Luxe' */
    color: #fff;
    border: none;
    padding: 0 25px;
    height: 44px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    /* Plus carré, plus pro */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s, background 0.2s;

    /* Force Reset des styles parasites */
    width: auto !important;
    min-width: 120px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: static !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.product-full-popup .popup-add-btn:active {
    transform: scale(0.96);
    background: #000;
}