/* =========================================================
   BCN ARTE - GLOBAL VARIABLES & RESET
========================================================= */
:root {
    --cmyk-cyan: #00aeef;
    --cmyk-magenta: #ec008c;
    --cmyk-yellow: #fff200;
    --dark-color: #1a1a1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --gray: #666666;
    --border-color: #eeeeee;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
	
}

body {
    background-color: var(--white);
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   ALERTS
========================================================= */
.alert {
    padding: 15px 20px;
    margin: 85px auto -60px;
    max-width: 1200px;
    width: 90%;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}
.alert.success {
    background-color: #d1fae5;
    color: #065f46;
}
.alert.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* =========================================================
   HEADER & NAVBAR
========================================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 75px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--cmyk-cyan);
}

.cta-btn {
    background: var(--dark-color);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-btn:hover {
    background: var(--cmyk-magenta);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--cmyk-magenta);
    color: var(--white);
}

.primary-btn:hover {
    background: #d0007b;
    color: var(--white);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.secondary-btn:hover {
    background: var(--white);
    color: var(--dark-color);
}

/* =========================================================
   SECTION TITLE & BARS
========================================================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    margin-bottom: 15px;
}

.color-bars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.bar {
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

.bar.cyan { background: var(--cmyk-cyan); }
.bar.magenta { background: var(--cmyk-magenta); }
.bar.yellow { background: var(--cmyk-yellow); }
.bar.black { background: var(--dark-color); }

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.85)),
                url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=1920&q=80') no-repeat center center / cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================================================
   SERVICES
========================================================= */
.services {
    padding: 100px 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.cyan-bg { background: var(--cmyk-cyan); }
.magenta-bg { background: var(--cmyk-magenta); }
.yellow-bg { background: var(--cmyk-yellow); color: var(--dark-color) !important; }

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    font-size: 15px;
}

/* =========================================================
   SHOP / PRODUCTS CARDS
========================================================= */
.shop-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.shop-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
}

.shop-card .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--cmyk-magenta);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 2;
}

.shop-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* تجعل الارتفاع مساوياً للعرض دائماً */
    height: auto; /* إلغاء الارتفاع الثابت القديم */
    overflow: hidden;
}

.shop-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.shop-card:hover .product-image img {
    transform: scale(1.08);
}

.shop-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.shop-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.shop-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
    gap: 10px;
}

.product-footer .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-color);
}

.product-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 20px;
}

/* =========================================================
   PRODUCT PAGE (DETAILS)
========================================================= */
.product-page {
    padding: 120px 5% 100px;
    background: var(--light-bg);
    min-height: 80vh;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #777;
}

.product-breadcrumb a {
    color: var(--dark-color);
    font-weight: 600;
}

.product-breadcrumb a:hover {
    color: var(--cmyk-magenta);
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 50px;
    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .25s ease, transform .35s ease;
}

.main-image-wrapper:hover .main-product-image {
    transform: scale(1.03);
}

.product-badge-detail {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--cmyk-magenta);
    color: var(--white);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 3;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-color);
    transition: all .2s ease;
    z-index: 5;
}

.gallery-arrow:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-thumbnail {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--white);
    cursor: pointer;
    transition: all .2s ease;
}

.product-thumbnail:hover { transform: translateY(-2px); }
.product-thumbnail.active { border-color: var(--cmyk-cyan); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
}

.product-category {
    display: inline-block;
    color: var(--cmyk-cyan);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-color);
    margin: 0 0 20px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.product-price {
    font-size: 30px;
    font-weight: 900;
    color: var(--dark-color);
}

.product-old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.product-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0 25px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 30px;
    background: var(--light-bg);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
}

.stock-badge.in-stock { color: var(--success-color); }
.stock-badge.out-of-stock { color: var(--cmyk-magenta); }

.product-description-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-description {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 30px;
}

.product-features {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-feature {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.product-feature i {
    color: var(--cmyk-cyan);
    font-size: 18px;
}

.no-product-image {
    aspect-ratio: 1 / 1;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
}

.no-product-image i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
}

/* =========================================================
   CART & CHECKOUT
========================================================= */
.cart-page, .checkout-page {
    padding: 120px 0 80px;
    background: var(--light-bg);
    min-height: 80vh;
}

.cart-table-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    font-weight: 700;
    color: var(--gray);
}

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-item.total {
    font-size: 20px;
    font-weight: 800;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

/* =========================================================
   LIGHTBOX
========================================================= */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-lightbox.show { display: flex; }

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-color);
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--cmyk-magenta);
    color: var(--white);
}

/* =========================================================
   ABOUT & CONTACT
========================================================= */
.about { padding: 100px 0; background: var(--white); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--gray); margin-bottom: 20px; }
.features-list { list-style: none; padding: 0; }
.features-list li { margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--cmyk-cyan); }
.about-visual { background: linear-gradient(135deg, var(--cmyk-cyan), var(--cmyk-magenta)); height: 350px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.creative-box { text-align: center; font-size: 24px; font-weight: 700; }
.creative-box i { font-size: 48px; display: block; margin-bottom: 10px; color: var(--cmyk-yellow); }

.contact { padding: 100px 0; background: var(--light-bg); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-size: 15px; background: var(--white); transition: 0.3s; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cmyk-cyan); box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.08); }
.contact-form button { width: fit-content; }
.contact-info { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.info-item { display: flex; align-items: center; gap: 15px; font-weight: 600; color: var(--dark-color); }
.info-item i { font-size: 20px; color: var(--cmyk-magenta); width: 25px; text-align: center; }
.social-icons { display: flex; gap: 15px; margin-top: 10px; }
.social-icons a { width: 40px; height: 40px; background: var(--dark-color); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-icons a:hover { background: var(--cmyk-cyan); transform: translateY(-3px); }

/* =========================================================
   FOOTER
========================================================= */
footer { background: var(--dark-color); color: var(--white); text-align: center; padding: 20px 0; }
footer p { margin: 0; }
footer span { color: var(--cmyk-yellow); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    nav { display: none; }
    .about-container, .contact-wrapper { grid-template-columns: 1fr; }
    .product-page { padding-top: 110px; }
    .product-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-info-card { padding: 30px; }
}

@media (max-width: 768px) {
    .hero { min-height: 90vh; }
    .hero-content h2 { font-size: 34px; }
    .hero-content p { font-size: 16px; }
    .section-title h2 { font-size: 30px; }
    .services, .shop-section, .about, .contact { padding: 70px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .about-text h2 { font-size: 30px; }
    .about-visual { height: 280px; }
}

@media (max-width: 600px) {
    .product-page { padding: 100px 20px 70px; }
    .product-info-card { padding: 25px 20px; }
    .product-title { font-size: 28px; }
    .product-price { font-size: 26px; }
    .product-features { grid-template-columns: 1fr; }
    .gallery-arrow { width: 40px; height: 40px; }
    .product-thumbnail { width: 68px; height: 68px; flex-basis: 68px; }
}

@media (max-width: 480px) {
    .container { width: 92%; }
    .logo img { height: 48px; }
    .hero-content h2 { font-size: 28px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .product-footer { flex-direction: column; align-items: stretch; }
    .product-footer .btn { width: 100%; }
    .product-footer .price { text-align: center; }
}