/*
Theme Name: Marvel PopArt Store
Theme URI: https://bigsales.pt
Author: BigSales Team
Description: A Pop-Art/Comic style theme with Chatbot
Version: 5.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Roboto:wght@400;700&display=swap');

:root {
    --marvel-red: #ED1D24;
    --comic-yellow: #F7D963;
    --comic-black: #000000;
    --comic-blue: #0277BD;
    --border-thick: 3px solid #000;
    --shadow-comic: 6px 6px 0px rgba(0,0,0,1);
}

* { box-sizing: border-box; }

body {
    background-color: #f5f5f5;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 20px 20px; /* افکت نقطه نقطه کمیک */
    font-family: 'Roboto', sans-serif;
    color: var(--comic-black);
    direction: rtl;
    margin: 0;
    padding: 0;
}

h1, h2, h3, a, button {
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

/* هدر */
header {
    background: var(--marvel-red);
    padding: 15px 0;
    border-bottom: var(--border-thick);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.site-title {
    font-size: 2.5rem;
    color: white;
    text-shadow: 3px 3px 0 #000;
    text-decoration: none;
    transform: rotate(-2deg);
    display: inline-block;
}

/* کارت محصولات */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.comic-card {
    background: #fff;
    border: var(--border-thick);
    box-shadow: var(--shadow-comic);
    transition: transform 0.2s;
    position: relative;
    padding-bottom: 10px;
}
.comic-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 #000;
}
.card-img {
    height: 250px;
    background: #eee;
    border-bottom: var(--border-thick);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }
.card-title { font-size: 1.4rem; margin: 10px 0; line-height: 1.2; }
.card-price {
    display: inline-block;
    background: var(--comic-yellow);
    padding: 5px 15px;
    font-size: 1.2rem;
    border: 2px solid #000;
    transform: rotate(2deg);
    font-weight: bold;
}
.btn-comic {
    display: block;
    width: 80%;
    margin: 15px auto 5px;
    background: var(--comic-blue);
    color: white;
    padding: 10px;
    border: 2px solid #000;
    text-decoration: none;
    font-size: 1.2rem;
}
.btn-comic:hover { background: #000; color: var(--comic-blue); }

/* چت بات */
#chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--comic-yellow);
    border: 3px solid #000;
    border-radius: 50%;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#chat-box {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    height: 450px;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
    z-index: 9999;
    flex-direction: column;
}
.chat-head {
    background: var(--marvel-red);
    color: white;
    padding: 15px;
    border-bottom: 3px solid #000;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
}
.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fff;
}
.msg {
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 2px solid #000;
    max-width: 85%;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}
.msg.bot { background: #eee; align-self: flex-start; border-radius: 10px 10px 10px 0; }
.msg.user { background: var(--comic-yellow); margin-right: auto; border-radius: 10px 10px 0 10px; }
.chat-input-area {
    padding: 10px;
    border-top: 3px solid #000;
    background: #eee;
    display: flex;
}
.chat-input { flex: 1; border: 2px solid #000; padding: 8px; font-weight: bold; }
.chat-send { background: var(--marvel-red); color: white; border: 2px solid #000; margin-right: 5px; cursor: pointer; padding: 0 15px; font-weight: bold; }