:root {
    --bg: #f6fbff;
    --ink: #0f1a2b;
    --accent: #1f6feb;
    --accent-soft: #b9d7ff;
    --card: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 24px 60px rgba(31, 111, 235, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Tajawal", "Cairo", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #e2f1ff 0%, #fdf4ff 45%, #ffffff 100%);
    color: var(--ink);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(31, 111, 235, 0.25) 0%, rgba(31, 111, 235, 0) 70%);
    z-index: -1;
    animation: float 14s ease-in-out infinite;
}

body::before {
    top: -120px;
    inset-inline-start: -120px;
    filter: blur(2px);
}

body::after {
    bottom: -160px;
    inset-inline-end: -140px;
    animation-delay: -6s;
    filter: blur(6px);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #bfe9ff 0%, #9fd8ff 50%, #7cc7ff 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    font-family: "Playfair Display", "Tajawal", "Cairo", "Segoe UI", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-kom {
    color: #0b2a5b;
    font-weight: 800;
}

.logo-gift {
    width: 36px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(11, 42, 91, 0.2);
}

.logo-k {
    color: inherit;
    font-weight: 800;
}

.main-nav a {
    margin-inline: 12px;
    font-weight: 600;
    color: #0b2a5b;
}

.lang-switch {
    font-weight: 700;
    color: #0b2a5b;
}

.hero {
    padding: 60px 0 40px;
    background: radial-gradient(circle at top, rgba(185, 215, 255, 0.6), rgba(255, 255, 255, 0.7)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(217, 236, 255, 0.7) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-card {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(31, 111, 235, 0.25);
    backdrop-filter: blur(18px);
    text-align: center;
    animation: rise 0.7s ease both;
    transform-origin: center;
}

.slider-section {
    padding: 40px 0;
}

.slider {
    display: flex;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 26px 70px rgba(31, 111, 235, 0.18);
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: saturate(1.05);
}

.slide .placeholder {
    height: 320px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.6);
    font-size: 28px;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    inset-inline-start: 20px;
    background: rgba(15, 26, 43, 0.65);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(31, 111, 235, 0.16);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: rise 0.7s ease both;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 80px rgba(31, 111, 235, 0.22);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.products-section,
.category-section {
    padding: 30px 0 50px;
}

.page-header {
    padding: 30px 0 10px;
}

.product-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: center;
}

.product-header img {
    width: 100%;
    border-radius: 18px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #b9d7ff 0%, #ffe0f7 100%);
    color: #0f1a2b;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #1f6feb 0%, #5b8cff 55%, #7a5cff 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(31, 111, 235, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

.card:hover,
.feature-card:hover,
.btn:hover,
.hero-card:hover,
.summary-card:hover,
.checkout-card:hover,
.profile-card:hover {
    animation: hover-shake 0.35s ease-in-out;
}

.checkout {
    padding: 20px 0 50px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    align-items: start;
}

.checkout-card {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 28px 70px rgba(31, 111, 235, 0.2);
    backdrop-filter: blur(14px);
    animation: rise 0.7s ease both;
}

.summary-card {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 28px 70px rgba(31, 111, 235, 0.2);
    backdrop-filter: blur(14px);
    animation: rise 0.7s ease both;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-note {
    font-size: 14px;
    color: #4a5d7a;
    margin-top: 12px;
}

.features-section {
    padding: 10px 0 40px;
}

.feature-card {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 26px 60px rgba(31, 111, 235, 0.18);
    backdrop-filter: blur(16px);
    animation: rise 0.7s ease both;
}

.feature-card h3 {
    margin: 12px 0 8px;
}

.icon-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.2), rgba(255, 120, 204, 0.2));
    color: var(--accent);
}

.icon-badge svg {
    width: 22px;
    height: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

label input,
label select,
label textarea {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(31, 111, 235, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.phone-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    margin-top: 8px;
}

.payment-options {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.alert {
    background: rgba(255, 230, 223, 0.8);
    color: #a63d1a;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.alert.success {
    background: rgba(215, 245, 230, 0.8);
    color: #0f6b4b;
}

.order-details {
    padding: 20px 0 50px;
}

.order-details .panel {
    background: var(--card);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
}

.details-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.profile {
    padding: 20px 0 50px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.profile-card {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 26px 60px rgba(31, 111, 235, 0.16);
    backdrop-filter: blur(14px);
    padding: 18px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.verify-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(246, 199, 160, 0.4);
    color: #8a4b1f;
}

.status-badge.ok {
    background: rgba(165, 238, 198, 0.5);
    color: #0f6b4b;
}

.status-badge.warn {
    background: rgba(255, 212, 188, 0.6);
    color: #a63d1a;
}

.table-wrap {
    overflow-x: auto;
}

.profile table {
    width: 100%;
    border-collapse: collapse;
}

.profile th,
.profile td {
    padding: 10px;
    text-align: start;
    border-bottom: 1px solid rgba(31, 111, 235, 0.12);
}

.grid .card:nth-child(2),
.grid .feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.grid .card:nth-child(3),
.grid .feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(28px);
    }
}

@keyframes hover-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.site-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav {
        display: flex;
        gap: 14px;
    }

    .payment-options {
        flex-direction: column;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
