* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #26365F;
    color: #ff4d94;
}

/* ---------- هدر و منو ---------- */

header {
    background: #ffffff;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #26365F;
    padding: 5px 10px;
    line-height: 1;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #26365F;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 100px 25px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.side-menu.show {
    right: 0;
}

.side-menu a {
    text-decoration: none;
    color: #ff77b0;
    font-size: 20px;
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: #ff77b0;
    line-height: 1;
}

.menu-toggle {
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    color: #ff77b0;
    font-family: inherit;
    font-size: 20px;
    padding: 18px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.arrow.open {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.submenu.open {
    max-height: 500px;
}

.submenu a {
    font-size: 17px;
    padding: 13px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.submenu .see-all {
    font-size: 15px;
    color: #ffffff;
    border-bottom: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- صفحه اول ---------- */

.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #091b4c, #233866);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: #ffffff;
    color: #ff77b0;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
}

.products {
    padding: 60px 8%;
    text-align: center;
}

.products h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.product-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.product {
    background: white;
    width: 250px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-7px);
}

.product-image {
    font-size: 70px;
    margin-bottom: 15px;
}

.product h3 {
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    margin: 15px 0;
}

/* ---------- صفحه دسته‌بندی‌ها ---------- */

.products-page {
    min-height: calc(100vh - 100px);
    padding: 60px 8%;
    text-align: center;
    background: #26365F;
}

.products-page h1 {
    color: white;
    font-size: 38px;
    margin-bottom: 45px;
}

.product-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.product-item {
    width: 200px;
    min-height: 145px;
    background: white;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.product-item:hover {
    transform: translateY(-7px);
}

.product-item span {
    font-size: 46px;
    margin-bottom: 12px;
}

.product-item h2 {
    color: #26365F;
    font-size: 20px;
}

/* ---------- صفحه محصولات یک دسته ---------- */

.category-page {
    padding: 50px 8% 70px;
}

.back-link {
    color: #ff77b0;
    text-decoration: none;
    font-size: 16px;
}

.category-page h1 {
    color: white;
    font-size: 36px;
    text-align: center;
    margin: 25px 0 45px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.item-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.item-card:hover {
    transform: translateY(-6px);
}

.item-img {
    height: 140px;
    background: #f4f4f4;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.item-body {
    padding: 14px;
    text-align: center;
}

.item-body h3 {
    color: #26365F;
    font-size: 16px;
    margin-bottom: 12px;
}

.detail-btn {
    display: block;
    background: #26365F;
    color: white;
    padding: 9px;
    border-radius: 10px;
    font-size: 13px;
}

/* ---------- صفحه جزئیات محصول ---------- */

.detail-page {
    padding: 50px 8% 70px;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: white;
    border-radius: 22px;
    padding: 30px;
    margin-top: 25px;
}

.detail-img {
    height: 340px;
    background: #f4f4f4;
    border-radius: 16px;
    overflow: hidden;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-info h1 {
    color: #26365F;
    font-size: 28px;
    margin-bottom: 18px;
}

.detail-size {
    color: #666;
    font-size: 15px;
    margin-bottom: 12px;
}

.detail-price {
    color: #ff4d94;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 22px;
}

.detail-info h4 {
    color: #26365F;
    font-size: 17px;
    margin-bottom: 10px;
}

.detail-ing {
    color: #555;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 28px;
}

.order-btn {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
}

/* ---------- فوتر ---------- */

footer {
    background: #26365F;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
}

/* ---------- موبایل ---------- */

@media (max-width: 700px) {
    header {
        padding: 15px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .detail-box {
        grid-template-columns: 1fr;
    }

    .detail-img {
        height: 240px;
    }
}
/* ---------- تب‌ها و شبکه‌های اجتماعی ---------- */

.detail-img {
    height: 420px;
}

.detail-tabs {
    display: flex;
    gap: 10px;
    margin: 22px 0 18px;
}

.tab-btn {
    flex: 1;
    background: #f0f0f0;
    border: none;
    color: #26365F;
    font-family: inherit;
    font-size: 14px;
    padding: 11px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.tab-btn.active {
    background: #26365F;
    color: white;
}

.tab-box {
    min-height: 120px;
    margin-bottom: 22px;
}

.hidden {
    display: none;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
}

.social-btn:hover {
    opacity: 0.88;
}

.social-btn.ig { background: #E1306C; }
.social-btn.tg { background: #229ED9; }
.social-btn.rb { background: #7B3FA0; }
.social-btn.bl { background: #1F7AE0; }

.order-btn {
    background: #25D366;
    font-size: 17px;
    padding: 15px;
}

@media (max-width: 700px) {
    .detail-img {
        height: 280px;
    }
}
/* ---------- چیدمان جدید صفحه جزئیات ---------- */

.detail-page {
    max-width: 1200px;
}

.detail-box {
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 35px;
    align-items: start;
}

.detail-img {
    height: 480px;
    order: 2;
}

.detail-info {
    order: 1;
    display: flex;
    flex-direction: column;
}

.detail-tabs {
    max-width: 380px;
}

.tab-box {
    min-height: 80px;
    margin-bottom: 25px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.detail-actions .order-btn,
.detail-actions .contact-btn {
    flex: 1;
    margin: 0;
}

.contact-btn {
    display: block;
    text-align: center;
    background: #26365F;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 17px;
}

@media (max-width: 700px) {
    .detail-box {
        grid-template-columns: 1fr;
    }

    .detail-img {
        order: 1;
        height: 300px;
    }

    .detail-info {
        order: 2;
    }

    .detail-actions {
        flex-direction: column;
    }
}
.credit {
    margin-top: 10px;
    font-size: 13px;
    color: #ff77b0;
    direction: ltr;
    letter-spacing: 0.4px;
}
.item-img {
    height: 240px;
}
.detail-box {
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
        "info img"
        "actions actions";
}

.detail-img {
    grid-area: img;
}

.detail-info {
    grid-area: info;
}

.detail-actions {
    grid-area: actions;
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.detail-actions .order-btn,
.detail-actions .contact-btn {
    flex: 1;
    margin: 0;
}

@media (max-width: 700px) {
    .detail-box {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img"
            "info"
            "actions";
    }

    .detail-actions {
        flex-direction: column;
    }
}
.wa-btn {
    display: block;
    text-align: center;
    background: #26365F;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
}

.detail-actions .wa-btn {
    flex: 1;
    margin: 0;
}

.order-btn {
    background: #26365F;
}
.detail-img {
    height: 320px;
    max-width: 480px;
}

@media (max-width: 700px) {
    .detail-img {
        height: 280px;
        max-width: 100%;
    }
}
.detail-img {
    height: 340px;
    max-width: none;
    width: 100%;
    background: #f4f4f4;
    border-radius: 16px;
    overflow: hidden;
    display: block;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.detail-img {
    height: 520px;
}
/* ---------- صفحه کیک تولد و مناسبتی ---------- */

.special-page {
    padding: 40px 8% 70px;
    max-width: 1000px;
    margin: 0 auto;
}

.special-title {
    color: white;
    font-size: 34px;
    text-align: center;
    margin: 25px 0 30px;
}

.special-box {
    background: white;
    border-radius: 24px;
    padding: 35px;
}

.special-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.special-gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.special-note {
    color: #26365F;
    font-size: 18px;
    text-align: right;
    margin: 32px 0 16px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.special-actions {
    display: flex;
    gap: 15px;
}

.special-actions a {
    flex: 1;
    margin: 0;
}

@media (max-width: 700px) {
    .special-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .special-gallery img {
        height: 140px;
    }

    .special-actions {
        flex-direction: column;
    }
}
.special-gallery img {
    cursor: pointer;
    transition: 0.25s;
}

.special-gallery img:hover {
    transform: scale(1.04);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 10000;
    padding: 30px;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 44px;
    cursor: pointer;
    line-height: 1;
}
.gallery-title {
    color: #ff77b0;
    font-size: 17px;
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}