/* =========================================
   1. ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СБРОС (VARIABLES & RESET)
   ========================================= */
:root{--bg-color:#bd5d42;/* Фирменный оранжевый */ --bg-dark:#1a1a1a;--text-main:#1a1a1a;--star:#f1c40f;--glass-bg:rgba(30,30,30,0.95);--glass-border:rgba(255,255,255,0.1);--accent:#bd5d42;--msg-sent:#bd5d42;--msg-received:#e5e5ea;/* Цвета бейджиков */ --badge-hit:#8e44ad;--badge-new:#27ae60;--badge-sale:#e74c3c;--badge-ucenka:#d35400;}
*{margin:0;padding:0;box-sizing:border-box;}
body{background-color:var(--bg-color);font-family:'Inter',sans-serif;color:var(--text-main);overflow-x:hidden;}
a{text-decoration:none;color:inherit;transition:0.2s;}
ul{list-style:none;}
button{border:none;background:none;cursor:pointer;font-family:inherit;}
html{scroll-behavior:smooth;}
/* Компенсация скролла под фиксированным хедером */ #home,#service,#contacts,#catalog-section,section{scroll-margin-top:120px;}
.container{max-width:1240px;margin:0 auto;padding:0 20px;}

/* =========================================
   2. ШАПКА САЙТА (HEADER)
   ========================================= */
 .header-wrapper{position:fixed;top:24px;/* Центрирование */ left:50%;transform:translateX(-50%);z-index:1000;width:95%;max-width:1240px;height:64px;background:rgba(30,30,30,0.9);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:100px;border:1px solid rgba(255,255,255,0.1);box-shadow:0 15px 40px rgba(0,0,0,0.15);/* Анимация при скролле */ transition:all 0.4s ease;will-change:width,height,left,transform;display:flex;align-items:center;justify-content:space-between;padding:0 30px;}
/* Состояние сжатой шапки */ .header-wrapper.scrolled{left:calc(100% - 30px);transform:translateX(-100%);width:160px;padding:0;justify-content:center;}
.header-wrapper.scrolled.search-active{width:380px;}
.nav-content-left{display:flex;align-items:center;gap:30px;height:100%;max-width:1000px;opacity:1;transition:opacity 0.2s ease,max-width 0.4s ease;}
.header-wrapper.scrolled .nav-content-left{opacity:0;max-width:0;pointer-events:none;transition:opacity 0.1s ease,max-width 0s 0.1s;}
.nav-menu ul{display:flex !important;flex-direction:row !important;align-items:center;gap:10px;margin:0;padding:0;list-style:none;height:100%;}
.nav-menu li{display:flex;align-items:center;position:relative;height:100%;}
.nav-link,.btn-catalog-trigger{display:flex;align-items:center;justify-content:center;height:40px;padding:0 16px;color:rgba(255,255,255,0.8);font-weight:500;font-size:14px;border-radius:20px;line-height:1;transition:0.3s;white-space:nowrap;cursor:pointer;}
.nav-link:hover,.btn-catalog-trigger:hover,.btn-catalog-trigger.active{color:white;background:rgba(255,255,255,0.15);}
.btn-catalog-trigger{gap:10px;font-weight:600;}
.btn-catalog-trigger span{font-size:18px;}
.nav-icons{display:flex !important;align-items:center;gap:10px;margin-left:auto;flex-shrink:0 !important;min-width:120px;z-index:200;transition:opacity 0.3s ease;}
.header-wrapper.scrolled .nav-icons{margin:0 auto;transform:none;}
.header-wrapper.search-active .nav-content-left,.header-wrapper.search-active .nav-icons{opacity:0;pointer-events:none;transform:scale(0.9);transition:all 0.3s ease;}
.icon-btn{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:center;transition:0.2s;position:relative;border:1px solid transparent;padding:0;overflow:visible;/* Разрешаем выход за пределы */}
.icon-btn:hover{background:rgba(255,255,255,0.25);transform:scale(1.05);}
.cart-badge{position:absolute;top:-5px;right:-5px;/* Выносим за пределы иконки */ background:#e74c3c;color:white;font-size:10px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #333;/* Обводка чтобы не сливалось с фоном хедера */ font-weight:700;box-shadow:0 2px 5px rgba(0,0,0,0.2);}
.header-avatar{width:100%;height:100%;border-radius:50%;object-fit:cover;}

/* =========================================
   3. ПОИСК (SEARCH BAR)
   ========================================= */
 .search-bar-wrapper{position:absolute;top:50%;transform:translateY(-50%);right:50px;height:48px;background:#fff;border-radius:100px;display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 20px;width:48px;opacity:0;visibility:hidden;transition:all 0.6s cubic-bezier(0.2,0.8,0.2,1);z-index:50;box-shadow:0 5px 20px rgba(0,0,0,0.1);overflow:hidden;}
.search-bar-wrapper input{border:none;outline:none;flex-grow:1;margin-right:10px;font-size:16px;font-family:'Inter',sans-serif;background:transparent;color:#111;min-width:200px;}
.close-search{width:36px;height:36px;background:#f2f2f2;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;color:#111;cursor:pointer;transition:0.2s;flex-shrink:0;}
.close-search:hover{background:#e0e0e0;transform:rotate(90deg);}
.search-icon-input{margin-right:12px;flex-shrink:0;opacity:0.4;}
.header-wrapper.search-active .search-bar-wrapper{opacity:1;visibility:visible;width:calc(100% - 16px);right:8px;overflow:visible;}

/* =========================================
   4. КАТАЛОГ - ВЫПАДАЮЩЕЕ МЕНЮ (MEGA MENU)
   ========================================= */
 .dropdown-menu{position:fixed;top:95px;left:50%;transform:translateX(-50%) translateY(-20px);width:95%;max-width:1200px;background:rgba(35,35,35,0.98);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border:1px solid rgba(255,255,255,0.08);border-radius:24px;padding:30px;box-shadow:0 20px 50px rgba(0,0,0,0.5),0 0 0 1px rgba(255,255,255,0.05) inset;opacity:0;visibility:hidden;transition:all 0.3s cubic-bezier(0.34,1.56,0.64,1);z-index:999;}
.dropdown-menu.active{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.catalog-header{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:rgba(255,255,255,0.4);margin-bottom:20px;padding-left:5px;font-weight:700;}
.catalog-grid-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px;}
.catalog-grid-item{display:flex;align-items:center;gap:15px;padding:15px 20px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.05);border-radius:16px;text-decoration:none;transition:all 0.2s ease;color:white;}
.catalog-grid-item:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.3);transform:translateY(-3px);box-shadow:0 10px 20px rgba(0,0,0,0.2);}
.catalog-grid-item:active{transform:scale(0.98);}
.cat-icon{font-size:24px;width:48px;height:48px;background:rgba(255,255,255,0.1);border-radius:12px;display:flex;align-items:center;justify-content:center;transition:0.3s cubic-bezier(0.175,0.885,0.32,1.275);}
.catalog-grid-item:hover .cat-icon{background:var(--bg-color);color:white;transform:rotate(-10deg) scale(1.1);box-shadow:0 4px 12px rgba(255,102,0,0.4);}
.cat-info{display:flex;flex-direction:column;}
.cat-name{color:white;font-weight:600;font-size:15px;margin-bottom:4px;}
.cat-desc{color:rgba(255,255,255,0.5);font-size:12px;font-weight:400;}

/* =========================================
   5. СТРАНИЦЫ КОМПАНИИ И ПОМОЩИ (COMPANY & HELP)
   ========================================= */
 .page-layout{display:grid;grid-template-columns:240px 1fr;/* Фиксированная колонка + контент */ gap:60px;margin-top:40px;align-items:start;}
.sidebar-menu{position:sticky;top:110px;/* Прилипает под хедером */ display:flex;flex-direction:column;padding-right:20px;border-right:1px solid #eee;}
.sidebar-menu a{display:block;padding:10px 0 10px 20px;margin-bottom:4px;color:#666;font-weight:500;font-size:15px;border-left:3px solid transparent;transition:all 0.3s ease;}
.sidebar-menu a:hover{color:#000;padding-left:25px;background:transparent;}
.sidebar-menu a.active{color:#000;font-weight:700;border-left-color:var(--bg-color);/* Акцентная полоска */ background:transparent;}
.text-content{background:white;padding:50px;border-radius:24px;box-shadow:0 5px 30px rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.02);line-height:1.8;font-size:16px;color:#333;}
.text-content h2{font-size:32px;font-weight:800;margin-bottom:25px;margin-top:0;letter-spacing:-0.5px;}
.text-content h3{font-size:22px;font-weight:700;margin-top:30px;margin-bottom:15px;}
.text-content p{margin-bottom:20px;color:#555;}
.text-content ul,.text-content ol{margin-bottom:20px;padding-left:25px;color:#555;}
.text-content li{margin-bottom:10px;}
@media (max-width:900px){.page-layout{grid-template-columns:1fr;gap:30px;}
.sidebar-menu{position:static;border-right:none;flex-direction:row;overflow-x:auto;padding-bottom:10px;border-bottom:1px solid #eee;margin-bottom:20px;}
.sidebar-menu a{border-left:none;border-bottom:3px solid transparent;padding:10px 15px;white-space:nowrap;}
.sidebar-menu a.active{border-left-color:transparent;border-bottom-color:var(--bg-color);}
.text-content{padding:30px 20px;}
}

/* =========================================
   6. БОКОВАЯ КОРЗИНА (CART SIDEBAR)
   ========================================= */
 .cart-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.6);z-index:1001;backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:0.4s ease;}
.cart-overlay.active{opacity:1;visibility:visible;}
.cart-sidebar{position:fixed;top:0;right:0;width:420px;height:100%;background:#ffffff;z-index:1002;box-shadow:-10px 0 40px rgba(0,0,0,0.2);transform:translateX(100%);transition:0.5s cubic-bezier(0.2,0.8,0.2,1);display:flex;flex-direction:column;}
.cart-sidebar.active{transform:translateX(0);}
.cart-header{padding:25px 30px;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:center;background:#fff;}
.cart-header h2{font-size:22px;font-weight:700;margin:0;display:flex;align-items:center;gap:10px;}
.close-cart{font-size:24px;color:#999;transition:0.2s;cursor:pointer;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;}
.close-cart:hover{background:#f5f5f5;color:#333;transform:rotate(90deg);}
.cart-items{flex-grow:1;overflow-y:auto;padding:20px 30px;background:#fafafa;}
.cart-item{display:flex;gap:15px;margin-bottom:15px;padding:15px;background:#fff;border-radius:16px;box-shadow:0 4px 15px rgba(0,0,0,0.03);transition:0.2s;position:relative;border:1px solid transparent;}
.cart-item:hover{border-color:#eee;transform:translateY(-2px);}
.cart-item img{width:80px;height:80px;object-fit:contain;background:#fff;border-radius:10px;flex-shrink:0;}
.cart-item-info{flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;}
.cart-item-title{font-size:14px;font-weight:600;color:#333;line-height:1.4;margin-bottom:5px;}
.cart-item-price{font-size:15px;font-weight:700;color:#111;}
.cart-controls{display:flex;align-items:center;justify-content:space-between;margin-top:10px;}
.qty-selector{display:flex;align-items:center;gap:5px;background:#f5f5f7;padding:4px;border-radius:8px;}
.qty-btn{width:24px;height:24px;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#333;cursor:pointer;box-shadow:0 2px 5px rgba(0,0,0,0.05);transition:0.1s;}
.qty-btn:hover{transform:scale(1.1);}
.qty-btn:active{transform:scale(0.95);}
.qty-val{font-size:13px;font-weight:600;min-width:20px;text-align:center;}
.btn-remove{color:#e74c3c;font-size:12px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:4px;opacity:0.7;transition:0.2s;}
.btn-remove:hover{opacity:1;}
.cart-footer{padding:30px;border-top:1px solid #eee;background:#fff;}
.cart-total{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px;}
.btn-checkout{width:100%;padding:18px;background:#111;color:white;font-weight:700;border-radius:14px;font-size:16px;transition:0.3s;cursor:pointer;box-shadow:0 10px 20px rgba(0,0,0,0.15);display:flex;justify-content:center;align-items:center;gap:10px;}
.btn-checkout:hover{background:#333;transform:translateY(-2px);box-shadow:0 15px 30px rgba(0,0,0,0.2);}
.btn-checkout:disabled{background:#ccc;cursor:not-allowed;transform:none;box-shadow:none;}
@keyframes cartBump{0%{transform:scale(1);}
50%{transform:scale(1.3);}
100%{transform:scale(1);}
}
.bump-anim{animation:cartBump 0.3s ease;}
@media (max-width:500px){.cart-sidebar{width:100%;}
}

/* =========================================
   7. ГЛАВНАЯ СТРАНИЦА (HERO & SECTIONS)
   ========================================= */
 .hero{padding-top:160px;padding-bottom:60px;color:white;display:flex;justify-content:space-between;align-items:center;gap:40px;}
.hero-text h1{font-family:'Russo One';font-size:60px;line-height:1.1;margin-bottom:20px;}
.hero-text p{font-size:18px;opacity:0.9;margin-bottom:40px;}
.btn-main{padding:12px 28px;background:white;color:var(--bg-color);border-radius:12px;font-weight:700;font-size:16px;transition:0.18s;border:1px solid rgba(0,0,0,0.06);box-shadow:0 8px 20px rgba(0,0,0,0.06);}
.btn-main:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,0.12);}
.hero-img-placeholder{width:100%;max-width:550px;height:450px;background:radial-gradient(circle at center,rgba(255,255,255,0.2),rgba(255,255,255,0.05));border-radius:30px;display:flex;align-items:center;justify-content:center;}
.hero-img-float{width:100%;animation:float 6s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0);}
50%{transform:translateY(-20px);}
}
.section-white{background:#F5F5F7;padding:80px 0;border-radius:40px 40px 0 0;min-height:100vh;}
.section-header{display:flex;justify-content:space-between;align-items:end;margin-bottom:40px;}
.section-title{font-size:36px;font-weight:800;color:#111;}
.link-more{font-weight:600;color:#111;font-size:16px;padding:8px 16px;border-radius:10px;background:#fff;box-shadow:0 4px 10px rgba(0,0,0,0.05);transition:0.2s;}
.link-more:hover{background:#111;color:#fff;transform:translateX(5px);}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:30px;}
.product-card{background:white;border-radius:20px;padding:20px;transition:0.3s;display:flex;flex-direction:column;position:relative;border:1px solid transparent;}
.product-card:hover{transform:translateY(-8px);box-shadow:0 20px 40px rgba(0,0,0,0.12);border-color:rgba(0,0,0,0.05);}
.card-img-wrapper{height:220px;display:flex;align-items:center;justify-content:center;margin-bottom:20px;}
.card-img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply;}
.card-price{font-size:22px;font-family:'Russo One';margin-bottom:8px;}
.card-name{font-size:16px;font-weight:500;margin-bottom:20px;}
.card-actions{margin-top:auto;display:flex;justify-content:space-between;align-items:center;}
.btn-buy{background:#111;color:white;padding:10px 24px;border-radius:10px;font-weight:600;}
/* Discount Price in Card */ .card-price-discount{display:flex;flex-direction:column;margin-bottom:8px;line-height:1.2;}
.cp-old{font-size:13px;color:#999;text-decoration:line-through;font-weight:500;}
.cp-new{font-size:22px;font-family:'Russo One';color:#e74c3c;}
.badge-new{position:absolute;top:20px;left:20px;background:var(--badge-new);color:white;font-size:11px;padding:5px 10px;border-radius:6px;font-weight:700;z-index:5;}
.badge-sale{background:var(--badge-sale) !important;}
.badge-hit{background:var(--badge-hit) !important;}
.badge-ucenka{background:var(--badge-ucenka) !important;}
.promo-banner{background:#111;border-radius:30px;padding:50px;margin-bottom:80px;display:flex;justify-content:space-between;align-items:center;color:white;position:relative;overflow:hidden;}
.promo-content{z-index:2;max-width:50%;}
.promo-tag{color:var(--star);text-transform:uppercase;font-weight:800;letter-spacing:1px;font-size:13px;margin-bottom:15px;display:block;}
.promo-title{font-size:42px;font-family:'Russo One';margin-bottom:20px;line-height:1.1;}
.promo-desc{margin-bottom:30px;opacity:0.7;font-size:16px;line-height:1.6;}
.promo-img-wrap{z-index:2;max-width:400px;}
.promo-img-wrap img{width:100%;height:auto;object-fit:contain;}

/* =========================================
   8. ФУТЕР (FOOTER)
   ========================================= */
 footer{background:var(--bg-dark);color:white;padding:80px 0 30px;margin-top:auto;position:relative;z-index:10;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:50px;margin-bottom:60px;}
.footer-logo{font-family:'Russo One';font-size:28px;margin-bottom:20px;display:block;}
.footer-col h4{margin-bottom:24px;font-size:18px;font-weight:700;}
.footer-col a{display:block;color:#888;margin-bottom:14px;font-size:15px;transition:0.2s;}
.footer-col a:hover{color:white;transform:translateX(5px);}

/* =========================================
   9. КАТАЛОГ (CATALOG PAGE)
   ========================================= */
 .catalog-page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-top:20px;}
.catalog-layout{display:grid;grid-template-columns:280px 1fr;gap:40px;align-items:start;margin-bottom:80px;}
.filters-sidebar{background:#fff;border-radius:20px;padding:25px;box-shadow:0 10px 30px rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.04);position:sticky;top:100px;}
.filter-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #f5f5f5;}
.filter-header h3{font-size:18px;font-weight:800;margin:0;}
.btn-reset{font-size:13px;color:#999;border-bottom:1px dashed #ccc;padding-bottom:1px;transition:0.2s;}
.btn-reset:hover{color:#e74c3c;border-color:#e74c3c;}
.filter-group{margin-bottom:30px;}
.filter-group h4{font-size:15px;font-weight:700;margin-bottom:12px;color:#111;text-transform:uppercase;letter-spacing:0.5px;}
.price-inputs{display:flex;align-items:center;gap:10px;}
.price-input-wrap{position:relative;width:100%;}
.price-input-wrap span{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#999;font-size:12px;}
.price-inputs input{width:100%;padding:10px 10px 10px 25px;background:#f9f9f9;border:1px solid transparent;border-radius:8px;font-size:14px;font-weight:500;outline:none;transition:0.2s;}
.price-inputs input:focus{background:#fff;border-color:var(--bg-color);box-shadow:0 0 0 3px rgba(255,102,0,0.1);}
.categories-list{display:flex;flex-direction:column;gap:5px;max-height:300px;overflow-y:auto;padding-right:5px;}
.categories-list::-webkit-scrollbar{width:4px;}
.categories-list::-webkit-scrollbar-track{background:#f1f1f1;}
.categories-list::-webkit-scrollbar-thumb{background:#ccc;border-radius:2px;}
.filter-radio{cursor:pointer;display:flex;align-items:center;}
.filter-radio input{display:none;}
.radio-label{width:100%;padding:8px 12px;border-radius:8px;font-size:14px;color:#555;transition:0.2s;display:flex;justify-content:space-between;border:1px solid transparent;}
.filter-radio:hover .radio-label{background:#f5f5f5;color:#000;}
.filter-radio input:checked + .radio-label{background:#fff5f2;color:var(--bg-color);font-weight:600;border-color:#ffdecb;}
.sort-wrapper{position:relative;min-width:240px;z-index:100;}
/* Custom Select Styles */ .custom-select{position:relative;user-select:none;}
.custom-select-trigger{position:relative;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;font-size:15px;font-weight:600;color:#111;background:#fff;border:1px solid #e0e0e0;border-radius:16px;cursor:pointer;transition:all 0.2s ease;box-shadow:0 4px 12px rgba(0,0,0,0.03);}
.custom-select-trigger:hover{border-color:#ccc;box-shadow:0 6px 16px rgba(0,0,0,0.06);transform:translateY(-1px);}
.custom-select.open .custom-select-trigger{border-color:#111;border-bottom-left-radius:0;border-bottom-right-radius:0;}
.custom-select .arrow{font-size:10px;color:#777;transition:transform 0.3s;}
.custom-select.open .arrow{transform:rotate(180deg);}
.custom-options{position:absolute;display:block;top:100%;left:0;right:0;background:#fff;border:1px solid #e0e0e0;border-top:0;border-bottom-left-radius:16px;border-bottom-right-radius:16px;box-shadow:0 10px 20px rgba(0,0,0,0.1);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-10px);transition:all 0.3s cubic-bezier(0.16,1,0.3,1);overflow:hidden;z-index:101;}
.custom-select.open .custom-options{opacity:1;visibility:visible;pointer-events:all;transform:translateY(0);}
.custom-option{position:relative;display:block;padding:12px 20px;font-size:15px;font-weight:500;color:#333;cursor:pointer;transition:all 0.2s;}
.custom-option:hover{background-color:#f5f5f7;color:#000;}
.custom-option.selected{background-color:#f0f0f0;color:#111;font-weight:700;}
.custom-option.selected::after{content:'✓';position:absolute;right:20px;top:50%;transform:translateY(-50%);color:#111;font-weight:bold;}
/* Old styles removed/overwritten */ .sort-select{display:none;}
.sort-arrow{display:none;}
.loading-state{text-align:center;padding:60px;color:#888;font-size:16px;}
.empty-state{text-align:center;padding:60px;}
.empty-icon{font-size:48px;margin-bottom:15px;opacity:0.5;display:block;}
/* Pagination Styles */ .pagination-controls{display:flex;justify-content:center;gap:10px;margin-top:40px;}
.page-btn{width:40px;height:40px;border-radius:10px;background:white;border:1px solid #eee;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:0.2s;font-weight:600;color:#555;}
.page-btn:hover:not(.disabled){border-color:var(--bg-color);color:var(--bg-color);}
.page-btn.active{background:var(--bg-color);color:white;border-color:var(--bg-color);}
.page-btn.disabled{opacity:0.5;cursor:default;}
@media (max-width:900px){.catalog-layout{grid-template-columns:1fr;gap:20px;}
.filters-sidebar{position:relative;top:0;margin-bottom:20px;}
.catalog-page-header{flex-direction:column;align-items:flex-start;gap:15px;}
.sort-wrapper{width:100%;}
}

/* =========================================
   10. АВТОРИЗАЦИЯ И ПРОФИЛЬ (AUTH & PROFILE SIDEBAR)
   ========================================= */
 .profile-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:1003;opacity:0;visibility:hidden;transition:0.3s;}
.profile-overlay.active{opacity:1;visibility:visible;}
.profile-sidebar{position:fixed;top:0;right:0;width:400px;height:100%;background:white;z-index:1004;transform:translateX(100%);transition:0.4s cubic-bezier(0.2,0.8,0.2,1);box-shadow:-10px 0 40px rgba(0,0,0,0.2);display:flex;flex-direction:column;}
.profile-sidebar.active{transform:translateX(0);}
.profile-content{padding:30px;overflow-y:auto;}
.auth-input{width:100%;padding:14px;margin-bottom:12px;border-radius:12px;border:1px solid #eee;background:#f9f9f9;font-size:15px;outline:none;}
.auth-input:focus{border-color:var(--bg-color);background:#fff;}
.auth-link{text-align:center;font-size:13px;color:#666;margin-top:15px;}
.auth-link span{color:var(--bg-color);font-weight:700;cursor:pointer;border-bottom:1px dashed;}
.auth-divider{position:relative;text-align:center;margin:25px 0 15px;color:#999;font-size:12px;}
.auth-divider::before,.auth-divider::after{content:'';position:absolute;top:50%;width:40%;height:1px;background:#eee;}
.auth-divider::before{left:0;}
.auth-divider::after{right:0;}
.social-auth-grid{display:grid;gap:10px;margin-top:15px;}
.social-btn{width:100%;padding:12px;border-radius:12px;font-weight:600;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;transition:0.2s;}
.social-btn:hover{transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,0.1);}
.social-btn.google{background:#fff;color:#333;border-color:#ddd;}
.social-btn.apple{background:#000;color:#fff;}
.social-btn.telegram{background:#0088cc;color:#fff;}
.user-info{text-align:center;margin-bottom:30px;}
.user-avatar-big{width:80px;height:80px;background:#f0f0f0;border-radius:50%;margin:0 auto 15px;display:flex;align-items:center;justify-content:center;font-size:32px;overflow:hidden;}
.user-avatar-big img{width:100%;height:100%;object-fit:cover;}
.user-email{color:#888;font-size:14px;margin-top:5px;}
@media (max-width:500px){.profile-sidebar{width:100%;}
}

/* =========================================
   11. ЛИЧНЫЙ КАБИНЕТ (PROFILE PAGE)
   ========================================= */
 .profile-layout{display:grid;grid-template-columns:280px 1fr;gap:40px;align-items:start;}
.profile-menu-card{background:white;border-radius:24px;padding:25px;box-shadow:0 5px 30px rgba(0,0,0,0.03);position:sticky;top:100px;}
.user-mini-summary{display:flex;align-items:center;gap:15px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #f0f0f0;}
.user-avatar-container{position:relative;width:60px;height:60px;cursor:pointer;border-radius:50%;overflow:hidden;}
.user-avatar-container img{width:100%;height:100%;object-fit:cover;}
.avatar-edit-overlay{position:absolute;bottom:0;width:100%;height:20px;background:rgba(0,0,0,0.5);color:white;font-size:12px;display:flex;align-items:center;justify-content:center;opacity:0;transition:0.2s;}
.user-avatar-container:hover .avatar-edit-overlay{opacity:1;}
.user-mini-summary h3{font-size:16px;font-weight:700;margin:0;}
.user-mini-summary p{font-size:13px;color:#888;margin:2px 0 0 0;}
.profile-nav{display:flex;flex-direction:column;gap:8px;}
.p-nav-btn{width:100%;text-align:left;padding:14px 18px;border-radius:12px;font-size:15px;font-weight:600;color:#555;background:transparent;transition:0.2s;display:flex;gap:10px;align-items:center;}
.p-nav-btn:hover{background:#f9f9f9;color:#000;}
.p-nav-btn.active{background:#111;color:white;box-shadow:0 5px 15px rgba(0,0,0,0.1);}
.p-nav-btn.danger{color:#e74c3c;margin-top:10px;border-top:1px dashed #eee;border-radius:0 0 12px 12px;}
.p-nav-btn.danger:hover{background:#fff5f5;}
.content-card{background:white;border-radius:24px;padding:40px;box-shadow:0 5px 30px rgba(0,0,0,0.03);}
.content-card h2{font-size:22px;font-weight:700;margin-bottom:25px;padding-bottom:15px;border-bottom:1px solid #f5f5f5;}
.address-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;}
.address-card-ui{background:#fff;border:2px solid #f0f0f0;border-radius:16px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;transition:0.2s;position:relative;min-height:180px;cursor:pointer;}
.address-card-ui:hover{border-color:#ddd;transform:translateY(-3px);box-shadow:0 10px 25px rgba(0,0,0,0.05);}
.address-card-ui.selected{border-color:var(--bg-color);background:#fff9f7;box-shadow:0 0 0 1px var(--bg-color);}
.ac-header{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px;}
.ac-icon{font-size:20px;background:#f7f7f7;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ac-title{font-weight:700;font-size:15px;line-height:1.4;color:#333;}
.ac-details{font-size:13px;color:#666;line-height:1.6;flex-grow:1;margin-bottom:15px;}
.ac-actions{display:flex;gap:10px;justify-content:flex-end;}
.ac-btn{padding:6px 12px;font-size:12px;font-weight:600;border-radius:8px;background:#f5f5f7;color:#555;transition:0.2s;display:flex;align-items:center;gap:5px;}
.ac-btn:hover{background:#e0e0e0;color:#000;}
.ac-btn-del:hover{background:#fff0f0;color:#e74c3c;}
.ac-add-new{border:2px dashed #ccc;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#888;font-weight:600;gap:10px;}
.ac-add-new:hover{border-color:var(--bg-color);color:var(--bg-color);background:#fff;}
.ac-add-icon{font-size:32px;width:50px;height:50px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;transition:0.2s;}
.ac-add-new:hover .ac-add-icon{background:#fff0f0;color:var(--bg-color);}
.saved-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;}
.saved-card-mini{background:linear-gradient(135deg,#333,#000);color:rgba(255,255,255,0.9);border-radius:16px;padding:20px;position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:160px;box-shadow:0 10px 20px rgba(0,0,0,0.15);transition:0.2s;cursor:pointer;border:2px solid transparent;}
.saved-card-mini:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(0,0,0,0.25);}
.saved-card-mini.selected{border-color:var(--bg-color);box-shadow:0 0 0 2px rgba(255,102,0,0.3);}
.scm-chip{width:36px;height:24px;background:linear-gradient(135deg,#d4af37,#f9d976);border-radius:4px;margin-bottom:15px;opacity:0.9;}
.scm-num{font-family:monospace;font-size:18px;letter-spacing:2px;margin-bottom:20px;text-shadow:0 1px 2px rgba(0,0,0,0.5);}
.scm-info{display:flex;justify-content:space-between;font-size:12px;text-transform:uppercase;opacity:0.7;}
.scm-delete{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,0.2);color:white;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer;transition:0.2s;}
.scm-delete:hover{background:#e74c3c;}
.wishlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;}
.wishlist-grid .product-card{padding:15px;}
.wishlist-grid .card-img-wrapper{height:180px;}
.form-group{margin-bottom:20px;}
.form-group label{display:block;margin-bottom:8px;font-size:14px;color:#666;}
.st-input{width:100%;padding:12px 15px;border-radius:10px;font-size:15px;outline:none;transition:0.2s;border:1px solid #eee;}
.st-input:focus{border-color:var(--bg-color);}
.input-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;}
/* --- ORDER CARD DESIGN --- */ .orders-list{display:flex;flex-direction:column;gap:25px;}
.order-card{background:#fff;border:1px solid #eee;border-radius:20px;overflow:hidden;transition:0.3s ease;box-shadow:0 4px 20px rgba(0,0,0,0.02);}
.order-card:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(0,0,0,0.08);border-color:#e0e0e0;}
.order-header{padding:20px 25px;background:#fdfdfd;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:center;}
.order-info-main{display:flex;flex-direction:column;gap:4px;}
.order-id{font-weight:800;font-size:18px;color:#111;}
.order-date{font-size:13px;color:#888;font-weight:500;}
.order-status{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;}
.status-paid{background:#e8f5e9;color:#2e7d32;}
.status-new{background:#fff3cd;color:#ef6c00;}
.status-delivered{background:#f0f0f0;color:#555;}
.status-canceled{background:#fee;color:#c00;}
.order-body{padding:20px 25px;}
.order-items-container{display:flex;flex-direction:column;gap:15px;margin-bottom:20px;}
.order-item-row{display:flex;align-items:center;gap:20px;padding:10px;border-radius:12px;background:#fafafa;}
.order-item-row img{width:60px;height:60px;object-fit:contain;border-radius:8px;background:#fff;padding:4px;border:1px solid #eee;}
.order-item-name{font-size:14px;font-weight:600;color:#333;flex-grow:1;line-height:1.4;}
.order-item-meta{font-size:13px;color:#777;white-space:nowrap;margin-left:15px;}
.order-item-price{font-weight:700;font-size:15px;color:#111;white-space:nowrap;margin-left:20px;}
.order-footer{padding:15px 25px;border-top:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:flex-end;background:#fff;}
.order-meta-info{font-size:13px;color:#666;line-height:1.6;}
.order-meta-info strong{color:#333;}
.order-total-price{text-align:right;}
.order-total-price span{display:block;font-size:12px;color:#888;margin-bottom:2px;}
.order-total-price strong{font-size:22px;font-family:'Russo One';color:#111;}
@media (max-width:768px){.profile-layout{grid-template-columns:1fr;}
.profile-menu-card{position:static;margin-bottom:30px;}
}

/* =========================================
   12. ОФОРМЛЕНИЕ ЗАКАЗА (CHECKOUT)
   ========================================= */
 .checkout-layout{display:grid;grid-template-columns:1fr 380px;gap:30px;align-items:start;}
.payment-methods{display:grid;grid-template-columns:1fr 1fr;gap:15px;}
.pay-radio input{display:none;}
.pay-box{border:2px solid #eee;border-radius:12px;padding:15px;text-align:center;cursor:pointer;transition:0.2s;font-weight:600;display:flex;flex-direction:column;gap:5px;}
.pay-box span{font-size:24px;}
.pay-radio input:checked + .pay-box{border-color:var(--bg-color);background:#fff5f2;color:var(--bg-color);}
.summary-card{background:white;padding:30px;border-radius:24px;box-shadow:0 5px 30px rgba(0,0,0,0.05);position:sticky;top:100px;}
.summary-card h2{font-size:20px;margin-bottom:20px;}
.checkout-items-list{max-height:300px;overflow-y:auto;margin-bottom:20px;padding-right:5px;}
.co-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;}
.co-item-left{display:flex;align-items:center;gap:10px;}
.co-item-left img{width:40px;height:40px;object-fit:contain;border-radius:6px;background:#f9f9f9;}
.co-item-name{font-size:13px;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.co-item-qty{font-size:12px;color:#888;}
.co-item-price{font-size:14px;font-weight:600;}
.summary-divider{border-top:1px solid #eee;margin:15px 0;}
.summary-row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:10px;}
.summary-total{display:flex;justify-content:space-between;align-items:center;font-size:20px;font-weight:800;margin-top:15px;margin-bottom:20px;border-top:2px solid #f5f5f5;padding-top:15px;}
@media (max-width:900px){.checkout-layout{grid-template-columns:1fr;}
.summary-card{position:static;order:-1;margin-bottom:30px;}
}
.payment-grid,.delivery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.pay-card,.del-card{cursor:pointer;position:relative;}
.pay-card input,.del-card input{display:none;}
.pay-content,.del-content{border:2px solid #f0f0f0;border-radius:16px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:0.2s;height:100%;background:#fff;text-align:center;}
.pay-name,.del-name{font-size:13px;font-weight:600;color:#555;text-align:center;}
.del-price{font-size:11px;color:#888;font-weight:500;}
.del-card:hover .del-content,.pay-card:hover .pay-content{border-color:#ccc;background:#fafafa;}
.pay-card input:checked + .pay-content,.del-card input:checked + .del-content{border-color:var(--bg-color);background:#fff5f2;color:var(--bg-color);}
.pay-card input:checked + .pay-content .pay-name,.del-card input:checked + .del-content .del-name,.del-card input:checked + .del-content .del-price{color:var(--bg-color);}
.pm-kaspi input:checked + .pay-content{border-color:#f14635;background:#fff0f0;}
.pm-kaspi input:checked + .pay-content .pay-name{color:#f14635;}
.pm-halyk input:checked + .pay-content{border-color:#008542;background:#f0fff5;}
.pm-halyk input:checked + .pay-content .pay-name{color:#008542;}
@media (max-width:768px){.payment-grid,.delivery-grid{grid-template-columns:1fr 1fr;}
}

/* =========================================
   NEW CARD INPUT DESIGN
   ========================================= */
.card-input-container{background:#fff;border:1px solid #e0e0e0;border-radius:16px;padding:20px;margin-bottom:20px;box-shadow:0 4px 15px rgba(0,0,0,0.03);}
.form-row-split{display:flex;gap:15px;}
.form-row-split .form-group{flex:1;}
.input-with-icon{position:relative;}
.input-icon{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:18px;pointer-events:none;}
.secure-badge{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:15px;font-size:12px;color:#888;background:#f9f9f9;padding:8px;border-radius:8px;}

.pay-img-icon{height:32px;width:auto;max-width:100%;object-fit:contain;margin-bottom:5px;}
#toast-container{position:fixed;top:30px;left:30px;right:auto;bottom:auto;z-index:10000;display:flex;flex-direction:column;gap:15px;pointer-events:none;}
.toast{background:white;color:#333;padding:16px 24px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.15);font-weight:600;font-size:14px;display:flex;align-items:center;gap:12px;min-width:300px;transform:translateX(-120%);opacity:0;transition:all 0.4s cubic-bezier(0.16,1,0.3,1);border-left:4px solid #333;pointer-events:all;}
.toast.show{transform:translateX(0);opacity:1;}
.toast.success{border-left-color:#27ae60;}
.toast.success::before{content:'✅';font-size:16px;}
.toast.error{border-left-color:#e74c3c;}
.toast.error::before{content:'🛑';font-size:16px;}
.toast.info{border-left-color:#3498db;}
.toast.info::before{content:'ℹ️';font-size:16px;}

/* =========================================
   13. ПРОЧИЕ ЭЛЕМЕНТЫ (OTHER)
   ========================================= */
 .btn-wishlist{position:absolute;top:15px;right:15px;width:36px;height:36px;background:rgba(255,255,255,0.8);backdrop-filter:blur(4px);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;box-shadow:0 4px 10px rgba(0,0,0,0.05);transition:all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);z-index:10;}
.btn-wishlist svg{width:20px;height:20px;stroke:#333;stroke-width:2;fill:none;transition:0.3s;}
.btn-wishlist:hover{transform:scale(1.1);background:#fff;box-shadow:0 5px 15px rgba(0,0,0,0.1);}
.btn-wishlist.active{background:#fff0f0;}
.btn-wishlist.active svg{fill:#e74c3c;stroke:#e74c3c;transform:scale(1.1);}
.btn-wishlist.active.animating{animation:likeBurst 0.4s;}
.breadcrumbs{font-size:14px;color:#999;margin-bottom:20px;}
.breadcrumbs a{color:#999;transition:0.2s;}
.breadcrumbs a:hover{color:#000;}
.product-page-layout{display:grid;grid-template-columns:55% 1fr;gap:50px;align-items:start;margin-bottom:80px;position:relative;}
.product-gallery{display:flex;flex-direction:row;gap:15px;position:relative;top:0;height:500px;z-index:10;}
.thumbs-col{width:86px;flex-shrink:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding:2px;}
.thumbs-col::-webkit-scrollbar{width:0;}
.thumb-btn{width:80px;height:80px;flex-shrink:0;background:#fff;border-radius:16px;border:2px solid transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:0.2s;box-shadow:0 4px 10px rgba(0,0,0,0.05);}
.thumb-btn img{width:90%;height:90%;object-fit:contain;mix-blend-mode:multiply;}
.thumb-btn:hover{border-color:#ddd;transform:translateX(2px);}
.thumb-btn.active{border-color:var(--bg-color);background:#fff5f5;}
.main-img-wrap{flex-grow:1;height:100%;background:#fff;border-radius:24px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;box-shadow:0 15px 40px rgba(0,0,0,0.05);border:1px solid #f0f0f0;}
.main-product-img{width:90%;height:90%;object-fit:contain;mix-blend-mode:multiply;transition:transform 0.3s,opacity 0.2s;cursor:zoom-in;}
.main-img-wrap:hover .main-product-img{transform:scale(1.15);}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;background:rgba(255,255,255,0.9);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5;box-shadow:0 4px 10px rgba(0,0,0,0.1);opacity:0;transition:0.2s;user-select:none;font-size:18px;color:#333;}
.main-img-wrap:hover .gallery-arrow{opacity:1;}
.gallery-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.1);}
.arrow-prev{left:15px;}
.arrow-next{right:15px;}
.product-info-col{padding-top:0;min-width:0;}
.pd-meta-row{display:flex;align-items:center;gap:15px;margin-bottom:15px;}
.pd-rating{display:flex;align-items:center;gap:5px;font-weight:600;color:#333;}
.pd-rating span{color:#f1c40f;}
.pd-badge{padding:5px 10px;border-radius:6px;font-size:11px;font-weight:700;color:white;text-transform:uppercase;}
.pd-brand{font-size:14px;font-weight:700;color:var(--bg-color);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px;}
.pd-title{font-size:36px;font-weight:800;line-height:1.1;color:#111;margin-bottom:15px;}
.pd-price{font-size:40px;font-weight:800;color:#111;margin-bottom:25px;font-family:'Russo One',sans-serif;}
.pd-specs{background:#fff;padding:20px;border-radius:16px;border:1px solid #eee;margin-bottom:30px;}
.pd-specs h3{font-size:16px;margin-bottom:15px;font-weight:700;}
.spec-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f9f9f9;font-size:14px;}
.spec-row:last-child{border-bottom:none;}
.spec-key{color:#777;}
.spec-val{font-weight:600;color:#333;}
.pd-actions{display:flex;gap:15px;align-items:center;margin-top:20px;}
.pd-actions .btn-wrapper{height:56px !important;flex-grow:1;}
.pd-actions .btn-buy{font-size:16px;border-radius:14px;}
.btn-like-big{width:56px;height:56px;border-radius:14px;border:2px solid #eee;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:0.2s;background:white;flex-shrink:0;}
.btn-like-big:hover{border-color:#333;}
.btn-like-big svg{width:24px;height:24px;stroke:#333;stroke-width:2;fill:none;transition:0.3s;}
.btn-like-big.active{background:#fff0f0;border-color:#e74c3c;}
.btn-like-big.active svg{fill:#e74c3c;stroke:#e74c3c;}
.pd-full-description{grid-column:1 / -1;margin-top:50px;padding-top:40px;border-top:1px solid #eee;}
.pd-full-description h3{font-size:22px;font-weight:700;margin-bottom:15px;}
.pd-full-description p{font-size:16px;line-height:1.7;color:#444;max-width:800px;}
.reviews-section{grid-column:1 / -1;margin-top:40px;padding-top:40px;border-top:1px solid #eee;}
.review-card{background:#fff;padding:20px;border-radius:16px;margin-bottom:15px;border:1px solid #f0f0f0;}
.rev-header{display:flex;justify-content:space-between;margin-bottom:8px;font-size:14px;font-weight:600;}
.rev-date{color:#999;font-weight:400;}
@media (max-width:900px){.product-page-layout{grid-template-columns:1fr;gap:30px;}
.product-gallery{flex-direction:column-reverse;height:auto;position:static;}
.thumbs-col{flex-direction:row;width:100%;height:auto;overflow-x:auto;gap:10px;}
.main-img-wrap{height:350px;}
}
.btn-wrapper{width:100%;height:56px;position:relative;overflow:hidden;border-radius:14px;}
@keyframes buttonPop{0%{opacity:0;transform:translateY(10px) scale(0.95);}
60%{transform:translateY(-2px) scale(1.02);}
100%{opacity:1;transform:translateY(0) scale(1);}
}
.btn-buy{width:100%;height:100%;background:#111;color:white;border:2px solid #111;border-radius:14px;font-weight:600;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background 0.3s ease,color 0.3s ease,border-color 0.3s ease,transform 0.2s ease;animation:buttonPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;}
.btn-buy:hover{background:#000;transform:translateY(-2px);box-shadow:0 5px 15px rgba(0,0,0,0.15);}
.btn-buy:active{transform:scale(0.98);}
.btn-buy.added{background:#fff;color:#27ae60;border-color:#27ae60;}
.btn-buy.added:hover{background:#fff5f5;border-color:#e74c3c;color:#e74c3c;transform:translateY(0);box-shadow:none;}
.btn-buy.added span{transition:opacity 0.2s;}
.btn-buy.added:hover span{display:none;}
.btn-buy.added:hover::after{content:"✕ Убрать";animation:fadeIn 0.2s ease;}
@keyframes fadeIn{from{opacity:0;transform:translateY(2px);}
to{opacity:1;transform:translateY(0);}
}
.auth-modal-overlay,.modal-form-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(20,20,20,0.6);backdrop-filter:blur(12px);z-index:5000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:all 0.3s ease;}
.auth-modal-overlay.active,.modal-form-overlay.active{opacity:1;visibility:visible;}
.auth-modal,.modal-form-card{background:#ffffff;width:440px;max-width:90%;padding:40px;border-radius:32px;box-shadow:0 25px 50px -12px rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.5);position:relative;overflow:hidden;transform:scale(0.9) translateY(20px);transition:all 0.4s cubic-bezier(0.34,1.56,0.64,1);max-height:90vh;overflow-y:auto;}
.auth-modal-overlay.active .auth-modal,.modal-form-overlay.active .modal-form-card{transform:scale(1) translateY(0);}
.auth-title,.modal-form-card h2{font-size:26px;font-weight:800;color:#111;margin-bottom:8px;text-align:center;letter-spacing:-0.5px;}
.auth-subtitle{font-size:14px;color:#888;text-align:center;margin-bottom:30px;}
.modal-close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:50%;background:#F3F4F6;color:#999;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:0.2s;}
.modal-close:hover{background:#e0e0e0;color:#111;transform:rotate(90deg);}
.custom-checkbox-label{display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none;font-size:14px;color:#555;margin-top:15px;}
.custom-checkbox-label input{display:none;}
.checkmark{width:22px;height:22px;border-radius:6px;border:2px solid #ddd;display:flex;align-items:center;justify-content:center;transition:0.2s;background:#fff;}
.custom-checkbox-label input:checked + .checkmark{background:var(--bg-color);border-color:var(--bg-color);}
.checkmark::after{content:'✓';color:white;font-weight:700;font-size:14px;display:none;}
.custom-checkbox-label input:checked + .checkmark::after{display:block;}
.btn-dashed{width:100%;padding:15px;border:2px dashed #ccc;border-radius:12px;color:#666;font-weight:600;cursor:pointer;text-align:center;transition:0.2s;background:transparent;}
.btn-dashed:hover{border-color:var(--bg-color);color:var(--bg-color);background:#fff5f5;}
.service-hero{background:#111;color:white;padding:140px 0 100px;margin-bottom:60px;border-radius:0 0 40px 40px;position:relative;overflow:hidden;}
.service-hero .container{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;}
.sh-tag{color:var(--bg-color);font-weight:800;letter-spacing:1px;text-transform:uppercase;font-size:13px;margin-bottom:20px;display:block;}
.sh-title{font-size:52px;font-family:'Russo One',sans-serif;line-height:1.1;margin-bottom:20px;}
.sh-desc{font-size:18px;opacity:0.8;line-height:1.6;margin-bottom:40px;max-width:480px;}
.sh-buttons{display:flex;align-items:center;gap:30px;}
.sh-stat{display:flex;flex-direction:column;border-left:1px solid rgba(255,255,255,0.2);padding-left:20px;}
.sh-stat strong{font-size:24px;font-weight:800;}
.sh-stat span{font-size:12px;opacity:0.6;}
.sh-img img{width:100%;max-width:450px;margin:0 auto;display:block;filter:drop-shadow(0 20px 60px rgba(255,255,255,0.1));animation:float 6s ease-in-out infinite;}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:25px;margin-bottom:80px;}
.feature-card{background:white;padding:30px;border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.02);transition:0.3s;}
.feature-card:hover{transform:translateY(-5px);box-shadow:0 15px 40px rgba(0,0,0,0.08);}
.fc-icon{font-size:32px;margin-bottom:15px;}
.feature-card h3{font-size:18px;font-weight:700;margin-bottom:10px;}
.feature-card p{font-size:14px;color:#666;line-height:1.5;}
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:30px;margin-bottom:100px;}
.price-card{background:white;border-radius:24px;padding:35px;box-shadow:0 10px 40px rgba(0,0,0,0.05);border:1px solid rgba(0,0,0,0.02);display:flex;flex-direction:column;transition:0.3s;}
.price-card:hover{transform:translateY(-5px);border-color:#eee;}
.pc-header{display:flex;align-items:center;gap:15px;margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid #f5f5f5;}
.pc-icon{width:50px;height:50px;background:#f5f5f7;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;}
.pc-header h3{font-size:20px;font-weight:700;margin:0;}
.pc-list{list-style:none;padding:0;margin:0 0 30px 0;flex-grow:1;}
.pc-list li{display:flex;justify-content:space-between;margin-bottom:15px;font-size:15px;}
.pc-list li span{color:#666;}
.pc-list li strong{color:#111;font-weight:600;}
.pc-btn{width:100%;padding:14px;border-radius:12px;border:2px solid #111;background:transparent;color:#111;font-weight:700;font-size:15px;cursor:pointer;transition:0.2s;}
.pc-btn:hover{background:#111;color:white;}
.steps-section{background:white;padding:60px;border-radius:30px;box-shadow:0 10px 40px rgba(0,0,0,0.03);}
.steps-row{display:flex;justify-content:space-between;position:relative;}
.step-item{text-align:center;width:200px;position:relative;z-index:2;}
.step-num{width:50px;height:50px;background:var(--bg-color);color:white;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;margin:0 auto 20px;box-shadow:0 5px 15px rgba(255,102,0,0.4);}
.step-item h4{font-size:18px;margin-bottom:10px;}
.step-item p{font-size:14px;color:#666;line-height:1.5;}
.step-line{flex-grow:1;height:2px;background:#f0f0f0;margin-top:25px;margin-left:-50px;margin-right:-50px;z-index:1;}
.auth-modal{text-align:left;}
textarea.st-input{resize:none;height:80px;font-family:'Inter',sans-serif;}
@media (max-width:900px){.service-hero .container{grid-template-columns:1fr;text-align:center;}
.sh-buttons{justify-content:center;}
.sh-stat{border:none;border-top:1px solid rgba(255,255,255,0.2);padding-top:15px;width:100%;}
.sh-title{font-size:36px;}
.steps-row{flex-direction:column;align-items:center;gap:40px;}
.step-line{display:none;}
.step-item{width:100%;}
}
.form-group label{font-size:12px;font-weight:700;color:#444;margin-bottom:8px;display:block;text-transform:uppercase;letter-spacing:0.5px;}
.avatars-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:20px;}
.avatars-grid img{width:70px;height:70px;border-radius:50%;cursor:pointer;border:3px solid transparent;padding:2px;transition:all 0.2s cubic-bezier(0.25,0.46,0.45,0.94);}
.avatars-grid img:hover{transform:scale(1.05);}
.avatars-grid img.selected{border-color:var(--bg-color);background:#fff5f5;transform:scale(1.1);box-shadow:0 4px 12px rgba(255,102,0,0.3);}
.payment-disabled{opacity:0.5;pointer-events:none;filter:grayscale(1);}
.store-selector-ui{margin-bottom:20px;background:#fff;padding:15px;border-radius:12px;border:1px solid #eee;}
.store-option{padding:10px;border-radius:8px;cursor:pointer;transition:0.2s;border:1px solid transparent;display:flex;justify-content:space-between;align-items:center;}
.store-option:hover{background:#f5f5f7;}
.store-option.selected{border-color:var(--bg-color);background:#fff5f5;color:var(--bg-color);}
.service-request-card{border:1px solid #eee;border-radius:12px;padding:15px;margin-bottom:15px;background:#fff;transition:0.2s;}
.service-request-card:hover{box-shadow:0 5px 15px rgba(0,0,0,0.05);}
.req-header{display:flex;justify-content:space-between;margin-bottom:8px;font-size:14px;color:#666;}
.req-status{font-weight:700;text-transform:uppercase;font-size:11px;padding:2px 8px;border-radius:4px;background:#eee;}
.status-process{background:#fff3cd;color:#856404;}
.status-done{background:#d4edda;color:#155724;}
.req-title{font-weight:700;font-size:16px;margin-bottom:5px;}
.req-message{font-size:14px;color:#444;}
.verified-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#27ae60;background:#e8f5e9;padding:2px 8px;border-radius:12px;margin-left:8px;}
.unverified-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:500;color:#999;background:#f0f0f0;padding:2px 8px;border-radius:12px;margin-left:8px;}
.review-form-container{background:white;border-radius:20px;padding:25px;box-shadow:0 10px 30px rgba(0,0,0,0.05);margin-bottom:40px;border:1px solid #eee;}
.review-form-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;border-top:1px solid #f5f5f5;padding-top:15px;}
.review-textarea{width:100%;border:1px solid #eee;border-radius:12px;padding:15px;font-size:15px;font-family:'Inter',sans-serif;outline:none;background:#f9f9f9;transition:0.2s;resize:none;min-height:100px;}
.review-textarea:focus{background:#fff;border-color:#ddd;box-shadow:0 4px 12px rgba(0,0,0,0.03);}
.attach-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#888;cursor:pointer;transition:0.2s;background:transparent;}
.attach-btn:hover{background:#f0f0f0;color:#333;}
.attach-btn svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none;}
.my-review-display{background:#fff9f7;border:2px solid var(--bg-color);border-radius:20px;padding:25px;margin-bottom:40px;position:relative;}
.my-review-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;}
.my-review-title{font-weight:800;font-size:18px;color:var(--bg-color);display:flex;align-items:center;gap:10px;}
.review-actions{display:flex;gap:10px;}
.action-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:10px;cursor:pointer;transition:0.2s;background:white;border:1px solid #eee;color:#555;font-weight:600;font-size:14px;}
.action-btn:hover{background:#f0f0f0;color:#111;border-color:#ddd;transform:translateY(-1px);}
.action-btn.delete:hover{background:#fff0f0;color:#e74c3c;border-color:#ffcccc;}
.star-rating{display:inline-flex;gap:5px;cursor:pointer;}
.star-rating svg{width:28px;height:28px;fill:#ddd;transition:fill 0.2s,transform 0.1s;}
.star-rating svg:hover{transform:scale(1.1);}
.star-rating svg.active,.star-rating svg.hover{fill:#f1c40f;}
.preview-grid{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;}
.preview-item{width:60px;height:60px;position:relative;border-radius:8px;overflow:hidden;border:1px solid #eee;box-shadow:0 2px 5px rgba(0,0,0,0.05);}
.preview-item img{width:100%;height:100%;object-fit:cover;}
.preview-remove{position:absolute;top:2px;right:2px;background:rgba(0,0,0,0.6);color:white;width:16px;height:16px;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(2px);}
.rev-photos{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;}
.rev-photo{width:80px;height:80px;border-radius:8px;cursor:pointer;object-fit:cover;border:1px solid #f0f0f0;transition:0.2s;}
.rev-photo:hover{transform:scale(1.05);box-shadow:0 5px 15px rgba(0,0,0,0.1);}
.lightbox-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.9);z-index:6000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:0.3s;}
.lightbox-overlay.active{opacity:1;visibility:visible;}
.lightbox-img{max-width:90%;max-height:90%;border-radius:8px;box-shadow:0 10px 50px rgba(0,0,0,0.5);}
.lightbox-close{position:absolute;top:30px;right:30px;color:white;font-size:40px;cursor:pointer;z-index:6001;}
.map-placeholder{width:100%;height:200px;background-color:#eee;border-radius:12px;margin-top:10px;background-size:cover;background-position:center;position:relative;overflow:hidden;}
.map-placeholder::after{content:'Карта загружается...';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#888;font-size:13px;}
/* FAQ Accordion Style */ .faq-item{border-bottom:1px solid #eee;padding:15px 0;}
.faq-question{font-weight:600;cursor:pointer;display:flex;justify-content:space-between;align-items:center;}
.faq-question::after{content:'+';font-size:18px;transition:0.2s;}
.faq-item.open .faq-question::after{transform:rotate(45deg);}
.faq-answer{max-height:0;overflow:hidden;transition:max-height 0.3s ease;color:#555;font-size:14px;margin-top:0;}
.faq-item.open .faq-answer{max-height:200px;margin-top:10px;}
/* Admin tweaks */ .specs-builder-row{display:flex;gap:10px;margin-bottom:10px;}
.specs-builder-row input{flex:1;}
.btn-icon-small{width:30px;height:30px;border-radius:50%;background:#f5f5f5;color:#666;display:flex;align-items:center;justify-content:center;font-size:16px;transition:0.2s;}
.btn-icon-small:hover{background:#e0e0e0;color:#333;}
.btn-icon-small.remove:hover{background:#ffebeb;color:#e74c3c;}
/* Price Display */ .pd-price-wrapper{display:flex;align-items:baseline;gap:12px;margin-bottom:25px;}
.pd-old-price{text-decoration:line-through;color:#999;font-size:22px;font-weight:500;}
.pd-new-price{font-size:40px;font-weight:800;color:#e74c3c;font-family:'Russo One',sans-serif;}
.admin-calc-preview{margin-left:10px;white-space:nowrap;}
/* --- STOCK STATUS --- */ .stock-status{font-size:14px;font-weight:600;margin-bottom:15px;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:8px;}
.stock-status.in-stock{color:#27ae60;background:#e8f5e9;}
.stock-status.in-stock::before{content:'●';font-size:10px;}
.stock-status.low-stock{color:#e67e22;background:#fdf2e9;}
.stock-status.low-stock::before{content:'●';font-size:10px;}
.stock-status.out-of-stock{color:#7f8c8d;background:#f0f3f4;}
.stock-status.out-of-stock::before{content:'●';font-size:10px;}
.pd-price.grayscale,.pd-price-wrapper.grayscale{filter:grayscale(1);opacity:0.6;}
.btn-buy.disabled{background:#bdc3c7 !important;border-color:#bdc3c7 !important;color:#fff !important;cursor:not-allowed !important;transform:none !important;box-shadow:none !important;}
.btn-buy.disabled:hover{background:#bdc3c7 !important;}
/* --- CHAT SUPPORT (Updated Styles) --- */ .support-chat-container{height:600px;display:flex;flex-direction:column;background:#f7f7f8;/* Светло-серый фон чата,как в Telegram/WhatsApp */ border-radius:16px;border:1px solid #eee;overflow:hidden;position:relative;}
.chat-messages{flex-grow:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;/* Меньший отступ между сообщениями */}
.message-bubble{max-width:75%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.4;position:relative;animation:messageAppear 0.2s cubic-bezier(0.1,0.9,0.2,1);/* Более быстрая анимация */ word-wrap:break-word;box-shadow:0 1px 2px rgba(0,0,0,0.05);}
@keyframes messageAppear{from{opacity:0;transform:translateY(10px) scale(0.95);}
to{opacity:1;transform:translateY(0) scale(1);}
}
.message-bubble.user{background:var(--msg-sent);/* Цвет отправленного сообщения */ color:white;align-self:flex-end;border-bottom-right-radius:4px;/* "Хвостик" справа */}
.message-bubble.support{background:#ffffff;/* Белый фон для входящих */ color:#000;align-self:flex-start;border-bottom-left-radius:4px;/* "Хвостик" слева */ border:1px solid rgba(0,0,0,0.05);}
.message-bubble .time{font-size:10px;opacity:0.7;margin-top:4px;text-align:right;display:block;}
/* Цвет времени на темном фоне должен быть светлым,на светлом - темным */ .message-bubble.user .time{color:rgba(255,255,255,0.8);}
.message-bubble.support .time{color:#999;}
.chat-input-area{padding:15px;border-top:1px solid #eee;background:white;display:flex;gap:10px;align-items:center;flex-shrink:0;}
.chat-input{flex-grow:1;padding:12px 16px;border:1px solid #e1e1e1;border-radius:24px;outline:none;font-size:15px;transition:border-color 0.2s;background:#f9f9f9;}
.chat-input:focus{border-color:var(--bg-color);background:white;}
.btn-send-msg{background:var(--bg-color);color:white;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:0.2s;flex-shrink:0;box-shadow:0 2px 8px rgba(189,93,66,0.3);}
.btn-send-msg:hover{transform:scale(1.05);background:#a85038;}
.btn-send-msg svg{width:20px;height:20px;fill:white;margin-left:3px;/* Оптическая компенсация иконки отправки */}
/* --- CONNECTIONS TAB (Now inside Settings) --- */ .connections-list{display:flex;flex-direction:column;gap:15px;margin-top:15px;}
.connection-card{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border:1px solid #eee;border-radius:16px;background:white;transition:background-color 0.2s;}
.connection-card:hover{background:#fcfcfc;}
.conn-info{display:flex;align-items:center;gap:15px;}
.conn-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f5f5f5;font-size:20px;}
.conn-status{font-size:12px;color:#888;font-weight:500;display:flex;align-items:center;gap:5px;margin-top:2px;}
.conn-status.connected{color:#27ae60;}
.btn-connect{padding:8px 16px;border-radius:8px;background:#111;color:white;font-weight:600;font-size:13px;cursor:pointer;transition:0.2s;min-width:100px;}
.btn-connect:hover{opacity:0.9;transform:translateY(-1px);}
.btn-connect.linked{background:#f5f5f5;color:#555;border:1px solid #ddd;}
.btn-connect.linked:hover{background:#fee;color:#e74c3c;border-color:#e74c3c;transform:none;}
/* --- ADMIN SEARCH --- */ .admin-search-bar{background:white;padding:15px 20px;border-radius:16px;box-shadow:0 5px 20px rgba(0,0,0,0.03);display:flex;gap:15px;margin-bottom:30px;align-items:center;border:1px solid #eee;flex-wrap:wrap;}
.admin-search-select{border:1px solid #eee;background:#f5f5f7;padding:10px 15px;border-radius:10px;font-weight:600;color:#555;outline:none;cursor:pointer;}
.admin-search-input{flex-grow:1;border:1px solid #eee;border-radius:10px;outline:none;font-size:15px;padding:10px 15px;}
.admin-advanced-search{display:flex;gap:15px;align-items:center;}
/* ADMIN CHAT (OLD STYLES REMOVED) */ /* Fix for scrollbars on some systems */::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-track{background:#f1f1f1;}
::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px;}
::-webkit-scrollbar-thumb:hover{background:#aaa;}
/* --- ONBOARDING GUIDE --- */ .guide-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:2000;display:none;justify-content:center;align-items:center;backdrop-filter:blur(5px);opacity:0;transition:opacity 0.3s ease;}
.guide-overlay.active{display:flex;opacity:1;}
.guide-card{background:white;width:400px;max-width:90%;border-radius:24px;padding:40px 30px;text-align:center;position:relative;box-shadow:0 20px 50px rgba(0,0,0,0.2);transform:translateY(20px);transition:transform 0.3s ease;}
.guide-overlay.active .guide-card{transform:translateY(0);}
.guide-slide{display:none;animation:fadeIn 0.4s;}
.guide-slide.active{display:block;}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px);}
to{opacity:1;transform:translateY(0);}
}
.guide-icon{font-size:60px;margin-bottom:20px;}
.guide-card h2{margin:0 0 15px;font-size:22px;color:#111;}
.guide-card p{color:#666;font-size:15px;line-height:1.6;margin:0;}
.guide-footer{margin-top:40px;display:flex;align-items:center;justify-content:space-between;}
.guide-dots{display:flex;gap:6px;}
.dot{width:8px;height:8px;background:#eee;border-radius:50%;transition:0.3s;}
.dot.active{background:#111;width:20px;border-radius:10px;}
.guide-buttons{display:flex;gap:10px;align-items:center;}
.btn-text{background:none;border:none;color:#999;cursor:pointer;font-size:14px;}
.btn-text:hover{color:#333;}
.btn-guide-next{background:#111;color:white;border:none;padding:10px 24px;border-radius:30px;cursor:pointer;font-weight:600;transition:0.2s;}
.btn-guide-next:hover{transform:scale(1.05);box-shadow:0 5px 15px rgba(0,0,0,0.1);}

/* =========================================
   MODERN SUPPORT CHAT STYLES
   ========================================= */
 .support-chat-container{display:flex;flex-direction:column;height:600px;/* Fixed height for the chat widget */ background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.05);}
.chat-header{padding:15px 20px;background:#fff;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:12px;z-index:10;}
.chat-agent-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #eef;}
.chat-agent-info h4{font-size:15px;font-weight:600;margin:0;color:#333;}
.chat-agent-status{font-size:12px;color:#27ae60;display:flex;align-items:center;gap:4px;}
.chat-agent-status::before{content:'';display:block;width:6px;height:6px;background:#27ae60;border-radius:50%;}
.chat-messages{flex:1;padding:20px;overflow-y:auto;background:#f8f9fa;display:flex;flex-direction:column;gap:10px;}
.message-bubble{max-width:75%;padding:10px 14px;font-size:14px;line-height:1.4;position:relative;word-wrap:break-word;animation:fadeIn 0.2s ease;}
@keyframes fadeIn{from{opacity:0;transform:translateY(5px);}
to{opacity:1;transform:translateY(0);}
}
.message-bubble.user{align-self:flex-end;background:var(--accent);/* Orange */ color:white;border-radius:18px 18px 4px 18px;box-shadow:0 2px 5px rgba(189,93,66,0.2);}
.message-bubble.support{align-self:flex-start;background:#fff;color:#333;border-radius:18px 18px 18px 4px;box-shadow:0 2px 5px rgba(0,0,0,0.05);border:1px solid #eee;}
.message-bubble .time{display:block;font-size:10px;margin-top:4px;opacity:0.7;text-align:right;}
.chat-input-area{padding:15px;background:#fff;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:10px;}
.chat-input{flex:1;padding:12px 16px;border:1px solid #eee;border-radius:24px;font-size:14px;outline:none;transition:border-color 0.2s;background:#f8f9fa;}
.chat-input:focus{border-color:var(--accent);background:#fff;}
.btn-send-msg{width:40px;height:40px;background:var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform 0.2s;flex-shrink:0;}
.btn-send-msg:hover{transform:scale(1.05);}
.btn-send-msg svg{width:20px;height:20px;fill:white;margin-left:2px;/* Visual correction */}
/* Scrollbar for chat */ .chat-messages::-webkit-scrollbar{width:6px;}
.chat-messages::-webkit-scrollbar-track{background:transparent;}
.chat-messages::-webkit-scrollbar-thumb{background:#ddd;border-radius:3px;}

/* =========================================
   ADMIN CHAT REDESIGN
   ========================================= */
 .admin-chat-wrapper{display:grid;grid-template-columns:320px 1fr;height:calc(100vh - 140px);/* Full height minus header/padding */ background:#fff;border-radius:16px;box-shadow:0 5px 20px rgba(0,0,0,0.05);overflow:hidden;border:1px solid #e0e0e0;}
/* --- SIDEBAR --- */ .admin-chat-sidebar{background:#fff;border-right:1px solid #f0f0f0;display:flex;flex-direction:column;}
.admin-chat-search{padding:15px;border-bottom:1px solid #f0f0f0;}
.admin-chat-search input{width:100%;padding:10px 15px 10px 35px;border-radius:8px;border:1px solid #eee;background:#f9f9f9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 10px center;font-size:14px;outline:none;transition:0.2s;}
.admin-chat-search input:focus{background-color:#fff;border-color:#ddd;box-shadow:0 2px 8px rgba(0,0,0,0.05);}
.admin-chat-list{flex:1;overflow-y:auto;}
.admin-chat-user{display:flex;align-items:center;padding:12px 15px;cursor:pointer;transition:0.2s;border-bottom:1px solid #f9f9f9;position:relative;}
.admin-chat-user:hover{background:#f5f5f7;}
.admin-chat-user.active{background:#eef2f5;border-left:3px solid var(--bg-color);}
.acu-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;margin-right:12px;border:1px solid #eee;position:relative;}
.acu-info{flex:1;min-width:0;}
.acu-top{display:flex;justify-content:space-between;margin-bottom:4px;}
.acu-name{font-weight:600;font-size:14px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.acu-time{font-size:11px;color:#999;}
.acu-bottom{display:flex;justify-content:space-between;align-items:center;}
.acu-msg{font-size:13px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px;}
.acu-badge{background:var(--bg-color);color:white;font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 5px;}
/* --- MAIN AREA --- */ .admin-chat-main{display:flex;flex-direction:column;background:#fff;}
.acm-header{padding:10px 20px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between;background:#fff;height:60px;}
.acm-user-info{display:flex;align-items:center;gap:12px;}
.acm-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;}
.acm-details h3{font-size:15px;font-weight:700;margin:0;color:#333;}
.acm-details p{font-size:12px;color:#888;margin:0;display:flex;align-items:center;gap:5px;}
.acm-messages{flex:1;padding:20px;overflow-y:auto;background:#f0f2f5;/* WhatsApp-like background */ display:flex;flex-direction:column;gap:8px;}
.acm-input-area{padding:15px 20px;background:#fff;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:15px;}
.acm-input{flex:1;padding:12px 15px;border-radius:8px;border:1px solid #ddd;font-size:14px;outline:none;background:#f9f9f9;transition:0.2s;}
.acm-input:focus{background:#fff;border-color:var(--bg-color);}
.acm-send-btn{width:40px;height:40px;background:var(--bg-color);color:white;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:0.2s;border:none;}
.acm-send-btn:hover{transform:scale(1.05);box-shadow:0 4px 10px rgba(189,93,66,0.3);}
/* Message Bubbles Override for Admin */ .message-bubble.admin-user{align-self:flex-start;background:#fff;color:#111;border-radius:0 12px 12px 12px;box-shadow:0 1px 2px rgba(0,0,0,0.1);}
.message-bubble.admin-support{align-self:flex-end;background:#dcf8c6;/* WhatsApp green-ish */ color:#111;border-radius:12px 0 12px 12px;box-shadow:0 1px 2px rgba(0,0,0,0.1);}

/* =========================================
   PROFILE DROPDOWN
   ========================================= */
 /* --- UNIFIED PROFILE MENU STYLES --- */ /* 1. Container Setup */ .profile-menu-container{display:none;/* Hidden by default */ flex-direction:column;background:rgba(30,30,30,0.98);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,0.1);border-radius:24px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,0.5);overflow:hidden;z-index:2000;}
/* 2. MODE A:DROPDOWN (Top State) */ .profile-menu-container.active{display:flex;position:absolute;top:100%;right:0;margin-top:15px;width:340px;/* Animation */ animation:dropdownEnter 0.3s cubic-bezier(0.34,1.56,0.64,1);transform-origin:top right;}
.profile-menu-container.closing{animation:dropdownExit 0.3s cubic-bezier(0.4,0,0.2,1) forwards;pointer-events:none;transform-origin:top right;}
@keyframes dropdownEnter{from{opacity:0;transform:scale(0.8) translateY(-20px);}
to{opacity:1;transform:scale(1) translateY(0);}
}
@keyframes dropdownExit{from{opacity:1;transform:scale(1) translateY(0);}
to{opacity:0;transform:scale(0.8) translateY(-20px);}
}
/* 3. MODE B:EXPANDED HEADER (Scrolled State) */ .header-wrapper.profile-expanded{width:380px;height:auto;min-height:200px;border-radius:24px;padding:20px;flex-direction:column;align-items:stretch;justify-content:flex-start;background:rgba(30,30,30,0.98);/* Disable standard transition to allow expansion */ transition:width 0.4s ease,height 0.4s ease,border-radius 0.4s ease;}
.header-wrapper.profile-expanded .nav-content-left,.header-wrapper.profile-expanded .nav-icons,.header-wrapper.profile-expanded .search-bar-wrapper{opacity:0;pointer-events:none;display:none;}
.header-wrapper.profile-expanded .profile-menu-container{display:flex;background:transparent;/* Remove bg since header has it */ border:none;box-shadow:none;padding:0;animation:fadeIn 0.3s ease 0.1s backwards;position:relative;/* Keep in flow when expanded */ width:100%;}
/* --- CLOSING STATE (MORPH BACK) --- */ .header-wrapper.closing{/* Force transition back to original state */ width:160px !important;/* Match scrolled width */ padding:0 !important;justify-content:center !important;min-height:64px !important;height:64px !important;border-radius:100px !important;/* Smoothly return to pill shape */ overflow:hidden !important;/* Clip content as it shrinks */ /* CRITICAL:Return to row layout immediately to prevent layout thrashing */ flex-direction:row !important;align-items:center !important;/* Use linear or ease-out to prevent bouncing */ transition:width 0.4s cubic-bezier(0.25,1,0.5,1),height 0.4s cubic-bezier(0.25,1,0.5,1),min-height 0.4s cubic-bezier(0.25,1,0.5,1),padding 0.4s ease,border-radius 0.4s ease,background 0.3s ease !important;}
.header-wrapper.closing .profile-menu-container{display:flex;position:absolute;/* Take out of flow immediately */ top:20px;/* Match the padding of the expanded state */ left:20px;/* Match the padding of the expanded state */ width:340px !important;/* Fixed width (380px - 40px padding) */ height:auto !important;/* Restore card styling so it looks like it's fading out as a block */ background:transparent !important;opacity:0;/* Fade out instantly to avoid visual glitches */ animation:fadeOut 0.15s ease forwards;pointer-events:none;z-index:0;}
.header-wrapper.closing .nav-icons{display:flex !important;opacity:0;z-index:10;/* Delay appearance until shape is almost restored */ animation:fadeIn 0.2s ease 0.25s forwards;}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px);}
to{opacity:1;transform:translateY(0);}
}
@keyframes fadeOut{from{opacity:1;}
to{opacity:0;}
}
/* --- MENU CONTENT STYLES --- */ .pm-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid rgba(255,255,255,0.1);/* Staggered Animation */ animation:slideInItem 0.3s ease 0.1s backwards;}
.pm-user{display:flex;align-items:center;gap:15px;}
.pm-avatar{width:48px;height:48px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:bold;color:white;overflow:hidden;/* Pop Animation */ animation:popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s backwards;}
.pm-avatar img{width:100%;height:100%;object-fit:cover;}
.pm-info .pm-name{font-size:16px;font-weight:700;color:white;}
.pm-info .pm-email{font-size:12px;color:rgba(255,255,255,0.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px;}
.pm-close,.pm-close-guest{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.1);color:white;display:flex;align-items:center;justify-content:center;transition:0.2s;font-size:18px;}
.pm-close:hover{background:rgba(255,255,255,0.2);transform:none;}
/* Grid Buttons */ .pm-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px;/* Staggered Animation */ animation:slideInItem 0.3s ease 0.2s backwards;}
@keyframes slideInItem{from{opacity:0;transform:translateY(10px);}
to{opacity:1;transform:translateY(0);}
}
@keyframes popIn{from{opacity:0;transform:scale(0.5);}
to{opacity:1;transform:scale(1);}
}
.pm-btn{background:rgba(255,255,255,0.05);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:20px;padding:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:white !important;transition:all 0.3s cubic-bezier(0.25,0.8,0.25,1);border:1px solid rgba(255,255,255,0.08);min-height:90px;height:auto;font-size:13px;font-weight:600;text-decoration:none !important;box-shadow:0 4px 15px rgba(0,0,0,0.1);}
.pm-btn span{color:rgba(255,255,255,0.9) !important;}
.pm-btn:hover{background:rgba(255,255,255,0.15);transform:translateY(-4px);border-color:rgba(255,255,255,0.25);box-shadow:0 8px 25px rgba(0,0,0,0.2);}
.pm-btn:active{transform:scale(0.96);}
.pm-btn.logout{color:#ff6b6b !important;background:rgba(255,107,107,0.1);border-color:rgba(255,107,107,0.15);}
.pm-btn.logout span{color:#ff6b6b !important;}
.pm-btn.logout:hover{background:rgba(255,107,107,0.2);border-color:rgba(255,107,107,0.3);color:#ff6b6b !important;}
.pm-icon{font-size:26px;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.2));}
/* Notifications Panel (Smooth Height) */ .pm-notif-wrapper{display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.4s cubic-bezier(0.4,0,0.2,1);}
.pm-notif-wrapper.open{grid-template-rows:1fr;margin-top:10px;}
.pm-notif-inner{overflow:hidden;background:rgba(0,0,0,0.2);border-radius:16px;}
.pm-notif-title{font-size:11px;text-transform:uppercase;color:rgba(255,255,255,0.4);padding:15px 15px 5px;font-weight:700;letter-spacing:1px;}
.pm-notif-list{padding:10px;}
.pm-notif-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:10px;background:rgba(255,255,255,0.05);margin-bottom:8px;cursor:pointer;transition:0.2s;}
.pm-notif-item:hover{background:rgba(255,255,255,0.1);}
.pm-notif-status{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.pm-notif-status.paid{background:#2ecc71;box-shadow:0 0 8px #2ecc71;}
.pm-notif-status.shipped{background:#3498db;box-shadow:0 0 8px #3498db;}
.pm-notif-status.delivered{background:#f1c40f;box-shadow:0 0 8px #f1c40f;}
.pm-notif-status.canceled{background:#e74c3c;}
.pm-notif-text{font-size:12px;color:white;font-weight:500;}
.pm-notif-price{font-size:11px;color:rgba(255,255,255,0.6);margin-top:2px;}
/* Guest State */ .pm-guest{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:30px 0;position:relative;}
.pm-guest p{color:white;font-size:16px;}
.pm-close-guest{position:absolute;top:0;right:0;color:white;width:30px;height:30px;background:rgba(255,255,255,0.1);border-radius:50%;}
.profile-avatar-small{width:40px;height:40px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:bold;color:white;font-size:18px;}
.profile-avatar-small img{width:100%;height:100%;object-fit:cover;}
.profile-info-small .name{font-weight:600;color:white;font-size:14px;}
.profile-info-small .email{font-size:12px;color:#888;margin-top:2px;}
.profile-menu-list li{margin-bottom:5px;}
.profile-menu-list li a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#ccc;font-size:14px;transition:0.2s;}
.profile-menu-list li a:hover{background:rgba(255,255,255,0.05);color:white;}
.profile-menu-list li.divider{height:1px;background:rgba(255,255,255,0.1);margin:8px 0;}
.profile-menu-guest{text-align:center;}
.profile-menu-guest p{font-size:13px;color:#aaa;margin-bottom:15px;line-height:1.4;}
.btn-login-dropdown{width:100%;padding:10px;background:var(--accent);color:white;border-radius:12px;font-weight:500;font-size:14px;transition:0.2s;}
.btn-login-dropdown:hover{background:#a0462e;}
/* --- NEW STYLES FOR AUTH & HEADER --- */ /* Remove rotation from close button */ .close-cart:hover{transform:none !important;background:#f0f0f0;}
/* Pulse animation for unauthenticated profile button */ @keyframes pulse-red{0%{box-shadow:0 0 0 0 rgba(231,76,60,0.7);}
70%{box-shadow:0 0 0 6px rgba(231,76,60,0);}
100%{box-shadow:0 0 0 0 rgba(231,76,60,0);}
}
.pulse-anim{animation:pulse-red 2s infinite;border-radius:50%;}
/* Login Indicator Dot */ #loginIndicator{position:absolute;top:2px;right:2px;width:8px;height:8px;background-color:#27ae60;border:1px solid #333;border-radius:50%;display:none;z-index:10;}
/* Pop In Animation for Splash Icon */ @keyframes popIn{0%{transform:scale(0);opacity:0;}
80%{transform:scale(1.2);opacity:1;}
100%{transform:scale(1);opacity:1;}
}
/* --- SPLASH SCREEN STYLES --- */ .pm-splash{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(20,20,20,0.95);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:24px;opacity:0;pointer-events:none;transition:opacity 0.3s ease;}
.pm-splash.active{opacity:1;pointer-events:all;}
.pm-splash-icon{font-size:48px;margin-bottom:15px;transform:scale(0.5);opacity:0;transition:all 0.5s cubic-bezier(0.34,1.56,0.64,1);}
.pm-splash.active .pm-splash-icon{transform:scale(1);opacity:1;transition-delay:0.1s;}
.pm-splash-text{font-size:18px;font-weight:600;color:white;transform:translateY(10px);opacity:0;transition:all 0.4s ease;}
.pm-splash.active .pm-splash-text{transform:translateY(0);opacity:1;transition-delay:0.2s;}
/* Search Preview */ .search-preview-dropdown{position:absolute;top:100%;left:0;width:100%;background:white;border-radius:0 0 12px 12px;box-shadow:0 10px 30px rgba(0,0,0,0.15);z-index:1000;display:none;max-height:400px;overflow-y:auto;padding:10px 0;}
.search-preview-dropdown.active{display:block;}
.sp-item{display:flex;align-items:center;padding:10px 20px;gap:15px;cursor:pointer;transition:background 0.2s;border-bottom:1px solid #f0f0f0;}
.sp-item:last-child{border-bottom:none;}
.sp-item:hover{background:#f9f9f9;}
.sp-img{width:40px;height:40px;object-fit:contain;border-radius:4px;}
.sp-info{flex:1;}
.sp-name{font-size:14px;font-weight:500;color:#333;}
.sp-price{font-size:13px;font-weight:600;color:#bd5d42;margin-top:2px;}
.sp-empty{padding:20px;text-align:center;color:#888;font-size:14px;}
/* --- IMPROVED FILTERS --- */ .filters-sidebar{background:#fff;border-radius:24px;padding:30px;box-shadow:0 15px 40px rgba(0,0,0,0.05);border:1px solid rgba(0,0,0,0.03);position:relative;/* Was sticky */ top:0;transition:all 0.3s ease;}
.filters-sidebar:hover{box-shadow:0 20px 50px rgba(0,0,0,0.08);}
.filter-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;padding-bottom:15px;border-bottom:2px solid #f5f5f7;}
.filter-header h3{font-size:20px;font-weight:800;color:#1a1a1a;letter-spacing:-0.5px;}
.btn-reset{font-size:13px;font-weight:600;color:#999;background:#f5f5f7;padding:6px 12px;border-radius:20px;border:none;transition:0.2s;}
.btn-reset:hover{background:#ffebe6;color:#e74c3c;}
.filter-group{margin-bottom:35px;}
.filter-group h4{font-size:16px;font-weight:700;margin-bottom:15px;color:#111;display:flex;align-items:center;gap:8px;}
/* Checkbox & Radio Styles */ .filter-checkbox,.filter-radio{cursor:pointer;display:flex;align-items:center;margin-bottom:8px;position:relative;}
.filter-checkbox input,.filter-radio input{display:none;}
/* Custom Checkbox UI */ .checkbox-label,.radio-label{width:100%;padding:10px 14px;border-radius:12px;font-size:15px;color:#444;transition:all 0.2s ease;display:flex;align-items:center;justify-content:space-between;border:1px solid transparent;background:transparent;}
.filter-checkbox:hover .checkbox-label,.filter-radio:hover .radio-label{background:#f9f9fb;color:#000;}
.filter-checkbox input:checked + .checkbox-label,.filter-radio input:checked + .radio-label{background:#fff5f2;color:var(--bg-color);font-weight:600;border-color:#ffdecb;box-shadow:0 4px 12px rgba(189,93,66,0.1);}
/* Add checkmark icon for checked state */ .filter-checkbox input:checked + .checkbox-label::after,.filter-radio input:checked + .radio-label::after{content:'✓';font-weight:bold;font-size:14px;}
/* Price Inputs */ .price-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.price-input-wrap input{width:100%;padding:12px 12px 12px 35px;background:#f5f5f7;border:1px solid transparent;border-radius:12px;font-size:15px;font-weight:600;color:#333;}
.price-input-wrap input:focus{background:#fff;border-color:var(--bg-color);box-shadow:0 0 0 4px rgba(189,93,66,0.1);}
.price-input-wrap span{left:12px;font-weight:500;color:#888;}
/* Scrollbar for lists */ .categories-list{max-height:350px;padding-right:8px;}
.categories-list::-webkit-scrollbar{width:6px;}
.categories-list::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:3px;}
.categories-list::-webkit-scrollbar-thumb:hover{background:#ccc;}
/* --- IMPROVED SEARCH PREVIEW --- */ .search-preview-dropdown{position:absolute;top:calc(100% + 12px);left:0;width:100%;background:rgba(255,255,255,0.98);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,0.15),0 0 0 1px rgba(0,0,0,0.05);z-index:1000;display:none;max-height:450px;overflow-y:auto;padding:10px;animation:slideDown 0.2s cubic-bezier(0.2,0.8,0.2,1);transform-origin:top center;}
@keyframes slideDown{from{opacity:0;transform:translateY(-10px) scale(0.98);}
to{opacity:1;transform:translateY(0) scale(1);}
}
.search-preview-dropdown.active{display:block;}
.sp-item{display:flex;align-items:center;padding:12px;gap:15px;cursor:pointer;transition:all 0.2s;border-radius:14px;margin-bottom:4px;}
.sp-item:hover{background:#f5f5f7;transform:translateX(4px);}
.sp-img-wrap{width:56px;height:56px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;border:1px solid #eee;padding:4px;}
.sp-img{width:100%;height:100%;object-fit:contain;}
.sp-info{flex:1;display:flex;flex-direction:column;gap:4px;}
.sp-name{font-size:15px;font-weight:600;color:#1a1a1a;line-height:1.3;}
.sp-brand{color:#888;font-weight:500;}
.sp-price{font-size:14px;font-weight:700;color:var(--bg-color);}
.sp-arrow{color:#ccc;font-size:20px;font-weight:300;padding-right:5px;}
.sp-footer{margin-top:8px;padding:14px;text-align:center;background:#f5f5f7;border-radius:12px;color:var(--bg-color);font-weight:600;font-size:14px;cursor:pointer;transition:0.2s;}
.sp-footer:hover{background:var(--bg-color);color:white;}
.sp-empty{padding:30px;text-align:center;color:#888;font-size:14px;}
/* --- PASSWORD VALIDATOR --- */ .pass-validator{position:absolute;bottom:100%;top:auto;left:0;width:100%;background:#fff;border:1px solid #eee;border-radius:8px;padding:10px;margin-bottom:8px;margin-top:0;box-shadow:0 4px 12px rgba(0,0,0,0.1);z-index:10;opacity:0;transform:translateY(10px);pointer-events:none;transition:0.3s cubic-bezier(0.175,0.885,0.32,1.275);}
.pass-validator.active{opacity:1;transform:translateY(0);pointer-events:all;}
.pv-item{font-size:12px;color:#666;margin-bottom:4px;display:flex;align-items:center;gap:6px;transition:0.2s;}
.pv-item::before{content:'○';font-weight:bold;color:#ccc;}
.pv-item.valid{color:#27ae60;}
.pv-item.valid::before{content:'●';color:#27ae60;}
/* Reviews Update */ .rev-header-row{display:flex;gap:15px;margin-bottom:10px;}
.rev-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;}
.rev-meta{display:flex;flex-direction:column;justify-content:center;}
.rev-user-row{display:flex;align-items:center;gap:10px;}
.verified-badge{background:#e8f5e9;color:#27ae60;padding:2px 8px;border-radius:12px;font-size:11px;}
.unverified-badge{background:#f5f5f5;color:#999;padding:2px 8px;border-radius:12px;font-size:11px;}
.rev-stars{font-size:14px;color:#f1c40f;display:flex;align-items:center;gap:10px;}
.rev-date{color:#999;font-size:12px;}
.rev-footer{margin-top:10px;display:flex;gap:15px;}
.rev-comments{margin-top:15px;padding-left:20px;border-left:2px solid #eee;}
.rev-comment{margin-bottom:10px;background:#f9f9f9;padding:10px;border-radius:8px;}
.emp-comment{background:#e3f2fd;border:1px solid #bbdefb;}
.rc-header{display:flex;align-items:center;gap:8px;margin-bottom:5px;}
.rc-avatar{width:24px;height:24px;border-radius:50%;}
.rc-name{font-weight:600;font-size:13px;}
.emp-badge{background:#2196f3;color:#fff;font-size:10px;padding:2px 6px;border-radius:4px;margin-left:5px;}
.rc-date{font-size:11px;color:#999;margin-left:auto;}
.rc-text{font-size:13px;color:#444;}
/* --- PRODUCT COLORS --- */
.pd-colors { margin-bottom: 20px; }
.pd-colors h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #333; }
.colors-list { display: flex; gap: 10px; flex-wrap: wrap; }
.color-variant-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.color-variant-btn:hover { transform: scale(1.1); }
.color-variant-btn.active { border-color: #111; }
.color-circle {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

/* --- REVIEWS BEAUTIFICATION --- */ .review-card{background:#fff;border-radius:16px;padding:20px;margin-bottom:20px;box-shadow:0 4px 20px rgba(0,0,0,0.03);border:1px solid #f0f0f0;transition:transform 0.2s;}
.review-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,0,0,0.06);}
.rev-actions button{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;background:#f5f5f7;transition:all 0.2s cubic-bezier(0.175,0.885,0.32,1.275);}
.rev-actions button:hover{background:#e0e0e0;transform:scale(1.05);}
.rev-actions button.active{background:#e3f2fd;color:#2196f3;}
.rev-actions button.active .icon{transform:scale(1.2);}
/* --- ADMIN REVIEWS TABLE --- */ .review-row td{vertical-align:top;padding:15px;}
.review-comment-text{max-width:300px;white-space:pre-wrap;font-size:13px;line-height:1.4;color:#444;}
/* --- REVIEWS BEAUTIFICATION --- */ .rev-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;padding-top:15px;border-top:1px solid #f5f5f5;}
.btn-reply-toggle{font-size:13px;font-weight:600;color:#666;cursor:pointer;padding:6px 12px;border-radius:20px;transition:0.2s;background:transparent;}
.btn-reply-toggle:hover{background:#f0f0f0;color:#333;}
.btn-admin-delete{color:#e74c3c;opacity:0.6;transition:0.2s;margin-left:10px;cursor:pointer;background:none;border:none;padding:0;}
.btn-admin-delete:hover{opacity:1;transform:scale(1.1);}
/* --- NEW CARD MODAL --- */ .card-modal-redesign{background:#fff;color:#333;border-radius:24px;padding:30px;max-width:400px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,0.2);}
.modal-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;}
.modal-header-row h2{font-size:20px;font-weight:700;margin:0;}
.close-modal-btn{width:32px;height:32px;border-radius:50%;background:#f5f5f7;border:none;font-size:16px;cursor:pointer;transition:0.2s;display:flex;align-items:center;justify-content:center;}
.close-modal-btn:hover{background:#e0e0e0;}
.card-form-container{display:flex;flex-direction:column;gap:15px;}
.form-row-split{display:flex;gap:15px;}
.form-row-split .form-group{flex:1;}
.modern-input{width:100%;padding:12px 15px;border:1px solid #e0e0e0;border-radius:12px;font-size:15px;background:#f9f9f9;transition:0.2s;outline:none;color:#333;}
.modern-input:focus{border-color:#000;background:#fff;}
.input-with-icon{position:relative;}
.input-icon{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:18px;pointer-events:none;}
.secure-badge{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:15px;font-size:12px;color:#888;}
/* --- REVIEWS REPLY & ANIMATION --- */ .rev-reply-form{margin-top:15px;display:flex;gap:10px;background:#f9f9f9;padding:10px;border-radius:12px;align-items:center;}
.reply-input{flex:1;border:1px solid #e0e0e0;background:#fff;padding:8px 12px;border-radius:20px;font-size:14px;outline:none;transition:0.2s;}
.reply-input:focus{border-color:#bd5d42;}
.reply-send-btn{width:auto;height:auto;border-radius:20px;padding:8px 16px;background:#333;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:0.2s;border:none;font-size:13px;font-weight:600;}
.reply-send-btn:hover{background:#000;transform:scale(1.05);}
.reply-cancel-btn{width:auto;height:auto;border-radius:20px;padding:8px 16px;background:#f0f0f0;color:#666;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:0.2s;border:none;font-size:13px;font-weight:600;}
.reply-cancel-btn:hover{background:#e0e0e0;color:#333;}
/* Like Animation */ @keyframes likeBurst{0%{transform:scale(1);}
50%{transform:scale(1.4);color:#e74c3c;}
100%{transform:scale(1);color:#2196f3;}
}
.btn-like.animating .icon{animation:likeBurst 0.4s ease-out;}
.btn-dislike.animating .icon{animation:likeBurst 0.4s ease-out;}
/* --- FLOATING ADMIN BUTTON --- */ .floating-admin-btn{position:fixed;bottom:30px;right:30px;width:60px;height:60px;background:#111;color:white;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,0.3);cursor:pointer;z-index:9999;transition:all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);border:2px solid rgba(255,255,255,0.1);}
.floating-admin-btn:hover{transform:scale(1.1) rotate(90deg);background:#000;}
/* --- PASSWORD TOOLTIP --- */ .password-wrapper{position:relative;}
.password-tooltip{position:absolute;bottom:100%;left:0;width:100%;background:#333;color:white;padding:10px;border-radius:8px;font-size:12px;margin-bottom:10px;opacity:0;visibility:hidden;transform:translateY(10px);transition:all 0.3s ease;z-index:10;pointer-events:none;}
.password-tooltip::after{content:'';position:absolute;top:100%;left:20px;border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent;}
.password-wrapper input:focus + .password-tooltip{opacity:1;visibility:visible;transform:translateY(0);}
.pw-requirement{display:flex;align-items:center;gap:6px;margin-bottom:4px;}
.pw-requirement.valid{color:#2ecc71;}
.pw-requirement.invalid{color:#e74c3c;}
/* --- CHECKOUT BUTTONS --- */ .btn-save-unified{width:100%;padding:14px;background:#bd5d42;color:white;border:none;border-radius:12px;font-weight:600;font-size:15px;cursor:pointer;transition:0.2s;margin-top:15px;}
.btn-save-unified:hover{background:#a34d36;transform:translateY(-1px);}
/* --- PAYMENT ANIMATION --- */ .payment-processing-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,0.98);z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:0.3s;}
.payment-processing-overlay.active{opacity:1;visibility:visible;}
.pp-spinner{width:60px;height:60px;border:4px solid rgba(0,0,0,0.05);border-left-color:var(--bg-color);border-radius:50%;animation:ppSpin 0.8s linear infinite;margin-bottom:20px;transition:opacity 0.3s;}
@keyframes ppSpin{100%{transform:rotate(360deg);}}
.pp-success-icon{width:70px;height:70px;display:none;margin-bottom:20px;position:relative;}
.checkmark-anim { width: 100%; height: 100%; display: block; }
.checkmark-circle{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#27ae60;fill:none;animation:stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;}
.checkmark-check{transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;stroke:#27ae60;stroke-width:3;fill:none;animation:stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.4s forwards;}
@keyframes stroke{100%{stroke-dashoffset:0;}}
.payment-processing-overlay.success .pp-spinner{display:none;}
.payment-processing-overlay.success .pp-success-icon{display:block;}
.pp-text{font-size:20px;font-weight:700;color:#111;margin-bottom:5px;}
.pp-sub{font-size:14px;color:#888;}