@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Baloo+2:wght@600;700;800&display=swap');

:root {
    --pink: #e91e63;
    --pink-dark: #c2185b;
    --pink-light: #fff0f5;
    --ink: #2a2a2e;
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: #faf7f5;
    color: #333;
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .btn { font-family: 'Baloo 2', 'Cairo', sans-serif; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 16px; }

::selection { background: var(--pink); color: #fff; }

/* Header */
header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e91e63;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

nav a:hover { background: #fff0f5; color: #e91e63; }

.cart-link {
    background: #e91e63;
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 18px !important;
}

.cart-badge {
    background: #fff;
    color: #e91e63;
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 4px;
}

/* Hero Banner */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e91e63 0%, #ff6090 55%, #f8bbd0 100%);
    color: #fff;
    padding: 70px 0 60px;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.hero::before { width: 260px; height: 260px; top: -100px; left: -80px; }
.hero::after { width: 180px; height: 180px; bottom: -90px; right: -40px; }

.hero .container { position: relative; z-index: 2; }

.hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 28px;
}

.hero .btn {
    background: #fff;
    color: #e91e63;
    font-weight: 700;
    padding: 13px 34px;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero .btn:hover { background: #fff0f5; transform: translateY(-2px); }

/* Sections */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    background: #e91e63;
    width: 6px;
    height: 28px;
    border-radius: 4px;
    display: inline-block;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all 0.25s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(233,30,99,0.12);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e91e63;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-badge.new { background: #00bcd4; }
.product-badge.sale { background: #ff5722; }

.product-img {
    height: 210px;
    background: linear-gradient(145deg, #fce4ec, #f8bbd0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e91e63;
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

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

.img-placeholder-icon { font-size: 3rem; opacity: 0.8; }

.product-info { padding: 16px; }

.product-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}

.product-size {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

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

.price {
    color: #e91e63;
    font-weight: 800;
    font-size: 1.2rem;
}

.old-price {
    color: #aaa;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.2s;
}

.btn:hover { background: #c2185b; }

.btn-block { display: block; width: 100%; text-align: center; }

.btn-outline {
    background: transparent;
    border: 2px solid #e91e63;
    color: #e91e63;
}

.btn-outline:hover {
    background: #e91e63;
    color: #fff;
}

/* Reviews */
.reviews-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.review-card {
    background: #faf7f5;
    border-radius: 14px;
    padding: 18px;
    border-right: 4px solid #e91e63;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-name { font-weight: 700; color: #333; }

.stars { color: #ffc107; letter-spacing: 2px; }

.review-text { color: #555; font-size: 0.95rem; }

/* Why Us */
.why-us {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 18px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.why-card {
    transition: transform 0.25s;
}

.why-card:hover { transform: translateY(-4px); }

.why-icon {
    font-size: 1.8rem;
    margin: 0 auto 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-light);
    border-radius: 50%;
}

.why-card h4 {
    font-weight: 700;
    margin-bottom: 6px;
    color: #e91e63;
}

/* Cart & Checkout */
.table {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.table th, .table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.table th { background: #fff0f5; font-weight: 700; }

.checkout-box {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
}

.payment-options {
    background: #fff0f5;
    padding: 16px;
    border-radius: 12px;
    margin: 12px 0;
}

.payment-options label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    font-weight: 600;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }
.alert-info { background: #e3f2fd; color: #1565c0; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* Admin */
.admin-header {
    background: #1a1a2e;
    color: #fff;
    padding: 16px 0;
}

.admin-header a {
    color: #fff;
    margin-left: 18px;
    text-decoration: none;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #e8f5e9; color: #2e7d32; }
.status-delivered { background: #e0f2f1; color: #00695c; }
.status-cancelled { background: #ffebee; color: #c62828; }

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    text-align: center;
    padding: 35px 0;
    margin-top: 60px;
}

footer a { color: #e91e63; text-decoration: none; }

/* Account nav (header) */
.account-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f5;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    margin-right: 4px;
}

.account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.account-name { font-weight: 700; color: #333; font-size: 0.9rem; }

.account-logout {
    color: #e91e63 !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 !important;
    background: none !important;
}

.account-login-btn { padding: 8px 20px !important; font-size: 0.9rem; }

/* Login page */
.login-wrap {
    display: flex;
    justify-content: center;
    padding: 60px 0 80px;
}

.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.login-box h2 { font-size: 1.6rem; margin-bottom: 8px; color: var(--ink); }

.login-sub { color: #777; font-size: 0.95rem; margin-bottom: 26px; }

.google-btn-wrap { display: flex; justify-content: center; margin-bottom: 8px; }

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 26px 0 18px;
    font-size: 0.85rem;
}

.login-divider::before, .login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eee;
}

.login-divider span { padding: 0 12px; }

.owner-login summary {
    cursor: pointer;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    list-style: none;
}

.owner-login summary::-webkit-details-marker { display: none; }
.owner-login summary:hover { color: #e91e63; }

/* Policy page */
.policy-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.policy-content h2 { color: #e91e63; margin: 25px 0 10px; }
.policy-content p { margin-bottom: 12px; }

/* لوحة تحكم المنتجات */
.product-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 20px;
}

.product-form-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0 5px;
}

.product-form-checks label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
}

.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.admin-thumb-empty {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-light);
    border-radius: 8px;
    font-size: 1.4rem;
}

.admin-thumb-preview {
    max-width: 140px;
    max-height: 140px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-img { height: 160px; }
    nav { justify-content: center; width: 100%; }
    .account-name { display: none; }
    .login-box { padding: 30px 22px; }
    .product-form-grid { grid-template-columns: 1fr; }
}
