* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #15181e;
}

::-webkit-scrollbar-thumb {
    background: #58d94a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4bc23d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(80,255,120,0.08) 0%, transparent 50%),
        #0d0f13;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background:
        radial-gradient(circle at 20% 10%, rgba(80,255,120,0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(80,255,120,0.04) 0%, transparent 35%),
        repeating-linear-gradient(45deg, #1a1d23 0px, #1a1d23 2px, #1e2228 2px, #1e2228 4px),
        #15181e;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
}

.ganja-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 26px;
    isolation: isolate;
}

.ganja-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 140px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(80, 255, 120, 0.55) 0%, rgba(80, 255, 120, 0.18) 40%, transparent 72%);
    filter: blur(6px);
    z-index: -1;
    animation: ganja-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ganja-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

.ganja-title {
    font-family: 'Permanent Marker', 'Bangers', cursive, sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(180deg, #d4ff8f 0%, #6fd23a 35%, #1f8a2e 70%, #0f5a1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 3px 0 rgba(0,0,0,0.3);
    transform: rotate(-3deg);
    text-transform: uppercase;
    animation: title-glow 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(120, 255, 100, 0.6)) drop-shadow(0 0 14px rgba(80, 230, 90, 0.35)); }
    50% { filter: drop-shadow(0 0 14px rgba(150, 255, 130, 0.95)) drop-shadow(0 0 28px rgba(90, 240, 100, 0.6)); }
}

.leaf-svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #58d94a;
    filter: drop-shadow(0 0 8px rgba(90, 255, 100, 0.75));
    animation: leaf-sway 2.6s ease-in-out infinite;
}

.leaf-right {
    animation-delay: 0.4s;
    transform: scaleX(-1);
}

@keyframes leaf-sway {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(12deg); }
}

.leaf-right.leaf-sway,
.leaf-right {
    animation-name: leaf-sway-right;
}

@keyframes leaf-sway-right {
    0%, 100% { transform: scaleX(-1) rotate(-10deg); }
    50% { transform: scaleX(-1) rotate(12deg); }
}

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

.customer-info {
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 5px;
}

main {
    padding: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    background: transparent;
    padding: 20px 0;
    border-radius: 12px;
}

.article-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #2d3a4f 0%, #1a2332 100%);
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.article-media-wrapper {
    position: relative;
    overflow: hidden;
}

.article-media {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    background: #1e2228;
    color: #999;
    cursor: pointer;
    pointer-events: auto;
}

.article-media:not(img):not(video) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content {
    padding: 24px;
    text-align: center;
}

.article-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.article-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    white-space: pre-line;
    position: relative;
}

.read-more {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 4px;
    -webkit-tap-highlight-color: transparent;
}

.read-more:hover {
    text-decoration: underline;
}

.desc-hover {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    white-space: pre-line;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-color: #58d94a #1e2228;
    scrollbar-width: thin;
    user-select: text;
    -webkit-user-select: text;
}

.desc-hover::-webkit-scrollbar {
    width: 5px;
}

.desc-hover::-webkit-scrollbar-thumb {
    background: #58d94a;
    border-radius: 3px;
}

.desc-hover.visible {
    display: block;
}

.article-price {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 10px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 14px;
    border-radius: 8px;
}

.category-section {
    display: contents;
}

.category-card {
    grid-column: 1 / -1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e2228 0%, #15181e 100%);
    border: 1px solid #2a2e36;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 10px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.category-banner {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #1e2228;
}

.category-content {
    padding: 24px;
    background: linear-gradient(135deg, #1e2228 0%, #15181e 100%);
    color: white;
    border-top: 1px solid #2a2e36;
}

.category-name {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: bold;
    color: #58d94a;
    text-shadow: 0 0 14px rgba(80,255,120,0.25);
}

.category-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.category-products {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    padding-left: 10px;
    padding-right: 10px;
}

.category-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 10px 0;
}

.category-divider::before,
.category-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #58d94a, transparent);
}

.category-divider span {
    font-size: 22px;
    font-weight: 700;
    color: #58d94a;
    padding: 0 12px;
    background: #1e2228;
    border: 1px solid #2a2e36;
    border-radius: 20px;
    text-shadow: 0 0 12px rgba(80,255,120,0.3);
}

.price-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-weight: 900;
    font-size: 13px;
    border-radius: 6px;
    transform: rotate(8deg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.price-stamp .stamp-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    opacity: 0.95;
}

.price-stamp .stamp-percent {
    font-size: 16px;
    font-weight: 900;
}

.price-stamp.discount {
    background: linear-gradient(135deg, #e63946 0%, #27ae60 100%);
    color: #fff;
}

.price-stamp.surcharge {
    background: linear-gradient(135deg, #1a1a1a 0%, #e63946 100%);
    color: #fff;
}

.article-price {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 8px 0;
    display: inline-block;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 14px;
    border-radius: 8px;
}

.article-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.article-quantity label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.quantity-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    border-color: #58d94a;
}

.add-to-cart-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #58d94a 0%, #1f8a2e 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.chat-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s;
}

body.chat-open .chat-backdrop {
    display: block;
    opacity: 1;
}

.chat-container {
    display: flex;
    position: fixed;
    top: 24px;
    right: 24px;
    width: 480px;
    max-width: calc(100vw - 48px);
    height: 85vh;
    max-height: calc(100dvh - 48px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    transform: translateY(12px) scale(0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.chat-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    font-size: 16px;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-delete,
.end-chat {
    padding: 5px 9px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 5px;
    color: white;
    background: rgba(0,0,0,0.16);
    cursor: pointer;
}

.request-delete {
    border-color: rgba(255,180,180,0.55);
    color: #ffe1e1;
}

.request-delete:disabled {
    opacity: 0.65;
    cursor: default;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f5f5;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 13px;
}

.message.user {
    background: #667eea;
    color: white;
    margin-left: auto;
}

.message.admin {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.message-sender {
    font-size: 11px;
    margin-bottom: 3px;
    opacity: 0.8;
}

.message-text {
    line-height: 1.35;
    font-size: 13px;
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.chat-input button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.chat-input button:hover {
    opacity: 0.9;
}

.chat-launcher {
    display: none;
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1001;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%),
        linear-gradient(145deg, #ffd23f 0%, #f2b705 42%, #1fa855 78%, #0e7c3f 100%);
    color: #17321f;
    box-shadow:
        0 10px 28px rgba(14, 124, 63, 0.45),
        0 0 0 4px rgba(255, 255, 255, 0.15),
        inset 0 -3px 6px rgba(0, 0, 0, 0.18),
        inset 0 3px 4px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 15px;
    overflow: visible;
    animation: cart-launcher-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), cart-launcher-glow 2.6s ease-in-out 0.5s infinite;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.chat-launcher.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.chat-launcher:hover {
    transform: translateY(-4px) scale(1.08) rotate(-4deg);
    box-shadow:
        0 16px 34px rgba(14, 124, 63, 0.55),
        0 0 0 5px rgba(255, 255, 255, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.18),
        inset 0 3px 4px rgba(255, 255, 255, 0.55);
}

.chat-launcher:active {
    transform: translateY(-1px) scale(0.96);
}

@keyframes cart-launcher-in {
    0% { transform: scale(0) rotate(-25deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cart-launcher-glow {
    0%, 100% { box-shadow:
        0 10px 28px rgba(14, 124, 63, 0.45),
        0 0 0 4px rgba(255, 255, 255, 0.15),
        inset 0 -3px 6px rgba(0, 0, 0, 0.18),
        inset 0 3px 4px rgba(255, 255, 255, 0.5); }
    50% { box-shadow:
        0 10px 32px rgba(242, 183, 5, 0.6),
        0 0 0 8px rgba(242, 183, 5, 0.12),
        inset 0 -3px 6px rgba(0, 0, 0, 0.18),
        inset 0 3px 4px rgba(255, 255, 255, 0.55); }
}

.chat-launcher .cart-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.chat-launcher b {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, #e63946);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.5), 0 0 0 2px #fff;
    animation: cart-badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-launcher b:empty {
    display: none;
}

@keyframes cart-badge-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.message.product-message {
    max-width: 94%;
    margin-left: auto;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.message.product-message .cart-item {
    border: 1px solid #b0b4bc;
    background:
        repeating-conic-gradient(#e8eaf0 0% 25%, #d4d8e0 0% 50%) 0 0 / 16px 16px,
        #e8eaf0;
    position: relative;
}

.message.product-message .cart-item::before {
    content: "📌 Produkt";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #667eea;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.remove-product-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,90,90,.85);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s;
}

.remove-product-btn:hover {
    background: rgba(255,60,60,1);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
}

.app-download-sticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sticker-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sticker-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.sticker-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.sticker-close:hover {
    opacity: 1;
}

.sticker-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sticker-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
}

.sticker-content p {
    margin: 0 0 20px 0;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #58d94a 0%, #1f8a2e 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-btn svg {
    flex-shrink: 0;
}

.cart-badge-info {
    position: absolute;
    right: 0;
    bottom: 78px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #17321f;
    color: #ffd23f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.cart-badge-info::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #17321f;
    transform: rotate(45deg);
}

.chat-launcher:hover .cart-badge-info {
    transform: translateY(-3px);
}

.cart-badge-info b {
    display: none;
}

.cart-badge-info span {
    font-size: 12px;
    font-weight: 700;
    color: #ffd23f;
}

.discount-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: #e63946;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    border-radius: 4px;
    transform: rotate(12deg);
    box-shadow: 0 2px 8px rgba(230,57,70,.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.alex-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.alex-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.alex-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.alex-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.alex-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.alex-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.alex-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.alex-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.alex-modal-body {
    padding: 20px;
    color: #555;
    line-height: 1.6;
}

.alex-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.alex-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.alex-modal-btn-cancel {
    background: #f0f0f0;
    color: #555;
}

.alex-modal-btn-cancel:hover {
    background: #e0e0e0;
}

.alex-modal-btn-confirm {
    background: #667eea;
    color: white;
}

.alex-modal-btn-confirm:hover {
    background: #5568d3;
}

body.chat-open {
    overflow: hidden;
}

.chat-cost-summary {
    padding: 15px 15px 20px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #555;
}

.cost-row strong {
    color: #333;
}

.cost-row.total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
}

.cost-row.total strong {
    color: #667eea;
    font-size: 16px;
}

.cost-row.discount {
    color: #27ae60;
}

.cost-row.discount strong {
    color: #27ae60;
}

.cost-row.surcharge {
    color: #e63946;
}

.cost-row.surcharge strong {
    color: #e63946;
}

.chat-cart {
    display: none;
}

.chat-cart h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.cart-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: 8px;
    padding: 8px;
    background:
        repeating-conic-gradient(#e8eaf0 0% 25%, #d4d8e0 0% 50%) 0 0 / 16px 16px,
        #e8eaf0;
    border: 1px solid #c0c4cc;
    border-radius: 6px;
    align-items: center;
}

.cart-item-media {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(20, 24, 32, 0.72);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

.cart-item-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 12px;
    color: #58d94a;
    font-weight: 500;
}

.cart-item-remove {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #ff6b6b;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.cart-item-remove:hover {
    background: #ff5252;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s;
}

.quantity-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.cart-quantity-input {
    width: 40px;
    height: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    padding: 0;
}

.cart-quantity-input:focus {
    outline: none;
    border-color: #667eea;
}

.product-chat-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: start;
}

.product-chat-card img,
.product-chat-card video {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.product-chat-card p {
    margin-top: 6px;
    color: #5f6470;
    white-space: pre-line;
    font-size: 13px;
}

@media (max-width: 700px) {
    body {
        padding: 0;
    }

    .container {
        min-height: 100vh;
        border-radius: 0;
        overflow: visible;
    }

    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .ganja-title {
        font-size: 20px;
        white-space: normal;
    }

    .leaf-svg {
        width: 32px;
        height: 32px;
    }

    .ganja-glow {
        width: 240px;
        height: 100px;
    }

    .customer-header-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .customer-info,
    .customer-header-actions button {
        width: 100%;
        min-height: 42px;
        text-align: center;
    }

    main {
        padding: 16px;
    }

    .articles-grid {
        display: block;
        padding-top: 10px;
    }

    .category-products {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .article-card {
        width: 100%;
        max-width: 340px;
        min-height: 480px;
        margin: 0 auto 20px;
        position: sticky;
        top: calc(70px + var(--i, 0) * 16px);
        z-index: calc(var(--i, 0) + 1);
    }

    .article-media-wrapper,
    .article-media {
        height: 220px;
    }

    .article-content {
        padding: 16px;
    }

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

    .article-price {
        font-size: 15px;
    }

    .chat-container {
        top: 0;
        left: 0;
        right: auto;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        transform: translateY(15px);
    }

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

    .chat-backdrop {
        display: none !important;
    }

    .chat-header {
        padding: 14px;
    }

    .chat-messages {
        padding: 14px;
    }

    .chat-input {
        padding: 16px;
        gap: 12px;
    }

    .chat-input input {
        padding: 14px;
        font-size: 16px;
    }

    .chat-input button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .message {
        max-width: 92%;
    }
}

@media (max-width: 420px) {
    .chat-header h2 {
        font-size: 16px;
    }

    .end-chat {
        padding: 7px;
        font-size: 12px;
    }

    .product-chat-card {
        grid-template-columns: 56px 1fr;
    }

    .product-chat-card img,
    .product-chat-card video {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 400px) {
    .articles-grid {
        padding: 10px;
    }

    .article-card {
        max-width: 300px;
        min-height: 460px;
    }

    .article-media-wrapper,
    .article-media {
        height: 200px;
    }

    .article-content {
        padding: 20px;
        min-height: 120px;
    }

    .article-name {
        font-size: 17px;
    }

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

.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.media-lightbox.active {
    display: flex;
}

.media-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.media-lightbox-video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.media-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 3001;
}

.media-lightbox-prev,
.media-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 0;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3001;
}

.media-lightbox-prev {
    left: 16px;
}

.media-lightbox-next {
    right: 16px;
}

@media (max-width: 900px) {
    .category-products {
        grid-template-columns: repeat(3, 1fr);
    }
}
