:root {
    --primary: #090c13;
    --secondary: #1d2e54;
    --bg-color: #f8f9fa;
    --text-main: #121212;
    --text-muted: #555555;
    --white: #ffffff;
    --border: #eaeaea;
    --accent: #3a5b99;
}

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

body {
    font-family: 'Almarai', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
}

.nav {
    display: none; /* Hide on mobile */
    gap: 30px;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(9, 12, 19, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 12, 19, 0.3);
}

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

.btn-large {
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-image-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.price-old {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Color Selection */
.color-selection {
    margin-top: 10px;
}

.color-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.color-swatches {
    display: flex;
    gap: 15px;
}

.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.swatch.active {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}

/* Reviews Badge */
.product-reviews-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107; /* Gold color for stars */
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Payment Methods */
.payment-methods {
    margin-top: 15px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.payment-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 4px;
    background: var(--white);
}

/* Product Accordion */
.product-accordion {
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-main);
    cursor: pointer;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .icon {
    transform: rotate(45deg); /* Turns + into x */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    padding-bottom: 20px;
}

.accordion-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Quantity */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: max-content;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f0f0f0;
}

#qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Features */
.features {
    padding: 80px 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.feature-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    
    .feature-row.reverse .feature-text {
        order: 2;
    }
    
    .feature-row.reverse .feature-image {
        order: 1;
    }
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-image img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(58, 91, 153, 0.25), 0 0 20px rgba(58, 91, 153, 0.1);
}

/* Specs */
.bg-light {
    background-color: var(--bg-color);
}

.specs {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.specs .section-title {
    margin-bottom: 50px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.spec-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.spec-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(9, 12, 19, 0.12), 0 0 20px rgba(58, 91, 153, 0.15);
}

.spec-card:hover::before {
    transform: scaleX(1);
}

.spec-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.spec-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.spec-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    max-width: 250px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 576px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Drawers and Modals */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ui-overlay.active {
    display: block;
    opacity: 1;
}

.side-drawer {
    position: fixed;
    top: 0;
    width: 320px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.left-drawer {
    left: 0;
    transform: translateX(-100%);
}

.left-drawer.active {
    transform: translateX(0);
}

.right-drawer {
    right: 0;
    transform: translateX(100%);
}

.right-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid #eaeaea;
    font-size: 1.1rem;
}

.modal-top {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1002;
    transition: top 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-top.active {
    top: 0;
}

.full-modal {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1005;
    transition: top 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.full-modal.active {
    top: 0;
}

.checkout-header {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    position: relative;
}

.checkout-body {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.form-input:focus {
    border-color: #111;
}

/* Responsive specific */
@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: block; }
}
