:root {
    --petcy-teal: #b8860b;      /* اللون الذهبي الأساسي */
    --petcy-teal-dark: #8a640a; /* ذهبي أغمق (تفاعل/هوفر) */
    --petcy-teal-light: #fdf6e8;/* خلفية ذهبية فاتحة جداً */
    --petcy-dark: #141414;      /* أسود المتجر */
}

body {
    font-family: "Tahoma", "Segoe UI", sans-serif;
    background-color: #fafcfc;
    color: var(--petcy-dark);
}

a { text-decoration: none; }

/* ---------- Header ---------- */
.petcy-header {
    background: #fff;
    border-bottom: 1px solid #eef1f1;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.petcy-logo-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--petcy-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    object-fit: cover;
    flex-shrink: 0;
}

.petcy-brand-name {
    font-weight: 700;
    color: var(--petcy-teal-dark);
    font-size: 1.15rem;
    line-height: 1.1;
}

.petcy-brand-tag {
    font-size: 0.68rem;
    color: #7a8a88;
}

.petcy-nav a {
    color: var(--petcy-dark);
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}
.petcy-nav a:hover { color: var(--petcy-teal-dark); }

.icon-btn {
    position: relative;
    color: var(--petcy-dark);
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
}

.cart-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--petcy-teal);
    color: #fff;
    font-size: 0.65rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Hero ---------- */
.petcy-hero {
    background: linear-gradient(135deg, var(--petcy-teal-light), #ffffff);
    padding: 3rem 1rem;
    border-radius: 0 0 24px 24px;
}
.petcy-hero h1 { color: var(--petcy-teal-dark); font-weight: 800; }

/* ---------- Buttons ---------- */
.btn-petcy {
    background: var(--petcy-teal);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-petcy:hover { background: var(--petcy-teal-dark); color: #fff; }

.btn-outline-petcy {
    border: 1.5px solid var(--petcy-teal);
    color: var(--petcy-teal-dark);
    font-weight: 600;
    background: #fff;
}
.btn-outline-petcy:hover { background: var(--petcy-teal); color: #fff; }

/* ---------- Cards ---------- */
.category-card {
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 1px solid #f0f3f2;
    transition: transform .15s ease, box-shadow .15s ease;
    padding: 1rem 0.5rem;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(184,134,11,0.15); }
.category-card img, .category-card .placeholder-icon {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; margin: 0 auto 0.5rem;
    background: var(--petcy-teal-light);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

.product-card {
    border-radius: 16px;
    border: 1px solid #f0f3f2;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow .15s ease;
}
.product-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.07); }
.product-card .img-wrap {
    aspect-ratio: 1/1;
    background: var(--petcy-teal-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-card .price { color: var(--petcy-teal-dark); font-weight: 700; }
.product-card .old-price { text-decoration: line-through; color: #aaa; font-size: 0.85rem; }

.badge-out {
    background: #e35d5b;
}

/* ---------- Checkout form ---------- */
.checkout-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f1;
    padding: 1.5rem;
}
.form-control, .form-select {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e7e6;
}
.form-control:focus, .form-select:focus {
    border-color: var(--petcy-teal);
    box-shadow: 0 0 0 0.2rem rgba(184,134,11,0.15);
}

.payment-option {
    border: 1.5px solid #e2e7e6;
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
}
.payment-option.selected {
    border-color: var(--petcy-teal);
    background: var(--petcy-teal-light);
}

/* ---------- Footer ---------- */
.petcy-footer {
    background: var(--petcy-dark);
    color: #d7e4e2;
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}
.petcy-footer a { color: #d7e4e2; }
.petcy-footer a:hover { color: var(--petcy-teal); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    background: #25D366;
    color: #fff !important;
    border-radius: 30px;
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 1200;
    font-weight: 600;
}

/* ---------- Mobile menu button ---------- */
.menu-toggle-btn {
    background: var(--petcy-dark);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle-btn:hover { background: var(--petcy-teal); }

/* ---------- Offcanvas mobile menu ---------- */
.offcanvas { max-width: 320px; }
.mobile-menu-tabs { border-bottom: 1px solid #eee; }
.mobile-menu-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    border-radius: 0;
}
.mobile-menu-tabs .nav-link.active {
    color: var(--petcy-teal-dark);
    border-bottom-color: var(--petcy-teal);
    background: transparent;
}
.mobile-menu-link {
    display: block;
    padding: 0.7rem 0.25rem;
    color: var(--petcy-dark);
    border-bottom: 1px solid #f2f2f2;
    font-weight: 500;
}
.mobile-menu-link:hover { color: var(--petcy-teal-dark); }

.mobile-category-tile { display: block; text-align: center; }
.mobile-category-thumb {
    aspect-ratio: 1/1;
    background: var(--petcy-teal-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.mobile-category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mobile-category-tile p { color: var(--petcy-dark); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 400px) {
    .petcy-brand-tag { display: none; }
    .petcy-logo-circle { width: 42px; height: 42px; font-size: 1.3rem; }
}

/* ---------- Admin login page ---------- */
.login-page-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top, #262626 0%, var(--petcy-dark) 65%);
}
.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--petcy-teal-light);
    box-shadow: 0 0 0 3px var(--petcy-teal);
}
@media (min-width: 576px) {
    .login-card { padding: 2.5rem 2rem; }
}


.admin-sidebar {
    background: var(--petcy-dark);
    min-height: 100vh;
    color: #fff;
}
.admin-sidebar a {
    color: #cfe4e1;
    display: block;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--petcy-teal);
    color: #fff;
}
.stat-card {
    border-radius: 16px;
    border: 1px solid #eef1f1;
    padding: 1.25rem;
    background: #fff;
}
.stat-card .value { font-size: 1.7rem; font-weight: 800; color: var(--petcy-teal-dark); }

.status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
