/* SafeDeal - Wildberries Theme */
:root{
    --wb-pink:#cb11ab;
    --wb-pink-dark:#a80e8c;
    --wb-pink-light:#fce4ec;
    --wb-orange:#ff6b35;
    --wb-green:#4caf50;
    --wb-yellow:#ff9800;
    --wb-red:#f44336;
    --wb-gray:#f5f5f5;
    --wb-dark:#333;
    --wb-text:#222;
    --wb-muted:#888;
    --wb-border:#e5e5e5;
    --bg:#fff;
    --white:#fff;
    --pink:var(--wb-pink);
    --pink-dark:var(--wb-pink-dark);
    --pink-light:var(--wb-pink-light);
    --green:var(--wb-green);
    --yellow:var(--wb-yellow);
    --red:var(--wb-red);
    --gray:var(--wb-gray);
    --text:var(--wb-text);
    --text-light:var(--wb-muted);
    --text-muted:var(--wb-muted);
    --border:var(--wb-border)
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,sans-serif;background:var(--bg);color:var(--wb-text);font-size:14px;line-height:1.5}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 40px}
@media(max-width:768px){.container{padding:0 16px}}
.main-content{padding-top:60px;min-height:100vh}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}
.btn-primary{background:var(--wb-pink);color:#fff}
.btn-primary:hover{background:var(--wb-pink-dark)}
.btn-outline{background:#fff;border:2px solid var(--wb-pink);color:var(--wb-pink)}
.btn-outline:hover{background:var(--wb-pink-light)}
.btn-lg{padding:16px 32px;font-size:16px;border-radius:12px}
.btn-sm{padding:8px 16px;font-size:12px}

/* Cards */
.card{background:var(--white);border-radius:14px;overflow:hidden}

/* Forms */
.form-group{margin-bottom:18px}
.form-label{display:block;font-size:13px;font-weight:600;margin-bottom:8px;color:var(--wb-dark)}
.form-input,.form-select,.form-textarea{width:100%;padding:14px 16px;border:1px solid var(--wb-border);border-radius:10px;font-size:14px;transition:border-color .2s}
.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:var(--wb-pink)}

/* Hero */
.hero{background:linear-gradient(135deg,#fce4ec 0%,#fff 100%);padding:60px 0;text-align:center}
.hero-title{font-size:36px;font-weight:700;margin-bottom:16px;color:var(--wb-dark)}
.hero-title span,.gradient-text{background:linear-gradient(135deg,var(--wb-pink),#e91e63);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero-desc{color:var(--wb-muted);font-size:16px;max-width:500px;margin:0 auto 28px}
.hero-actions{display:flex;gap:14px;justify-content:center}
.hero-stats{display:flex;justify-content:center;gap:60px;margin-top:40px}
.hero-stat-number{display:block;font-size:32px;font-weight:800;color:var(--wb-pink)}
.hero-stat-label{font-size:12px;color:var(--wb-muted);text-transform:uppercase}

/* Section */
.section{padding:40px 0}
.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.section-title{font-size:20px;font-weight:700;color:var(--wb-dark)}
.section-link{font-size:13px;color:var(--wb-pink);font-weight:600}

/* Products Grid */
.products-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
@media(max-width:1200px){.products-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:1000px){.products-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:768px){.products-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:500px){.products-grid{grid-template-columns:repeat(2,1fr)}}

/* Product Card */
.product-card{background:var(--white);border-radius:12px;overflow:hidden;text-decoration:none;display:flex;flex-direction:column}
.product-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.08)}
.product-card-image{aspect-ratio:3/4;background:var(--wb-gray);position:relative;overflow:hidden}
.product-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.product-card:hover .product-card-image img{transform:scale(1.05)}
.product-card-badge{position:absolute;bottom:8px;left:8px;padding:4px 10px;background:var(--wb-pink);border-radius:6px;font-size:10px;font-weight:700;color:#fff}
.product-card-fav{position:absolute;top:8px;right:8px;width:32px;height:32px;background:rgba(255,255,255,.9);border:none;border-radius:50%;cursor:pointer;color:#ccc;font-size:14px;display:flex;align-items:center;justify-content:center}
.product-card-fav:hover{color:#ff3b5c}
.product-card-info{padding:12px}
.product-card-category{font-size:10px;color:var(--wb-pink);text-transform:uppercase;font-weight:600}
.product-card-title{font-size:11px;color:var(--wb-dark);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0}
.product-card-seller{font-size:10px;color:var(--wb-muted)}
.product-card-footer{display:flex;justify-content:space-between;align-items:flex-end;margin-top:8px}
.price-current{font-size:16px;font-weight:700;color:var(--wb-orange)}
.price-original{font-size:11px;color:var(--wb-muted);text-decoration:line-through}

/* Categories */
.categories-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
@media(max-width:900px){.categories-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:600px){.categories-grid{grid-template-columns:repeat(3,1fr)}}
.category-card{background:var(--white);border:1px solid var(--wb-border);border-radius:14px;padding:24px 16px;text-align:center;transition:all .2s}
.category-card:hover{border-color:var(--wb-pink)}
.category-card-icon{width:56px;height:56px;margin:0 auto 12px;background:linear-gradient(135deg,#fce4ec,#f8bbd9);border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--wb-pink);font-size:22px}
.category-card-name{font-size:13px;font-weight:600}
.category-card-count{font-size:11px;color:var(--wb-muted)}

/* Features */
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:900px){.features-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.features-grid{grid-template-columns:1fr}}
.feature-card{background:var(--white);border:1px solid var(--wb-border);border-radius:14px;padding:28px;text-align:center}
.feature-card:hover{border-color:var(--wb-pink)}
.feature-card-icon{width:60px;height:60px;margin:0 auto 18px;background:linear-gradient(135deg,#fce4ec,#f8bbd9);border-radius:16px;display:flex;align-items:center;justify-content:center;color:var(--wb-pink);font-size:24px}
.feature-card h3{font-size:15px;font-weight:600;margin-bottom:10px}
.feature-card p{font-size:13px;color:var(--wb-muted);line-height:1.6}

/* Search Page */
.search-layout{display:grid;grid-template-columns:220px 1fr;gap:30px;padding:30px 0}
@media(max-width:768px){.search-layout{grid-template-columns:1fr}}
.search-sidebar{background:var(--white);border:1px solid var(--wb-border);border-radius:14px;padding:20px;height:fit-content;position:sticky;top:80px}
@media(max-width:768px){.search-sidebar{display:none}}
.search-sidebar h4{font-size:12px;color:var(--wb-muted);text-transform:uppercase;margin-bottom:12px;font-weight:600}
.search-sidebar a{display:block;padding:10px 12px;font-size:13px;color:var(--wb-muted);border-radius:8px}
.search-sidebar a:hover{background:var(--wb-gray)}
.search-sidebar a.active{background:var(--wb-pink-light);color:var(--wb-pink);font-weight:600}
.search-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:14px}
.search-header h1{font-size:20px;font-weight:700}
.search-header p{font-size:13px;color:var(--wb-muted)}

/* Empty */
.empty-state{text-align:center;padding:80px 20px}
.empty-state i{font-size:60px;color:var(--wb-border);margin-bottom:20px}

/* Alerts */
.alert{padding:14px 18px;border-radius:10px;font-size:13px;margin-bottom:16px}
.alert-success{background:#e8f5e9;color:#2e7d32}
.alert-error{background:#ffebee;color:#c62828}

/* Tables */
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--wb-border)}
.table th{background:var(--wb-gray);font-weight:600;font-size:12px}

/* Badges */
.badge{display:inline-flex;padding:4px 10px;border-radius:6px;font-size:11px;font-weight:600}
.badge-success{background:#e8f5e9;color:#2e7d32}
.badge-warning{background:#fff8e1;color:#f57f17}
.badge-danger{background:#ffebee;color:#c62828}

/* Avatar */
.avatar{width:40px;height:40px;border-radius:50%;background:var(--wb-pink);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Utilities */
.text-center{text-align:center}
.text-pink{color:var(--wb-pink)}
.text-muted{color:var(--wb-muted)}
.mt-2{margin-top:16px}
.mb-2{margin-bottom:16px}
