/* ═══════════════════════════════════════════
   GOLPAR THEME — Master Stylesheet
   ═══════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: #f7f8fa;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: .25s; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ═══════════ TOP BAR ═══════════ */
.topbar {
    background: #1f2937;
    color: #9ca3af;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a { color: #d1d5db; margin-right: 16px; }
.topbar a:hover { color: #fff; }

/* ═══════════ HEADER ═══════════ */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
    flex-shrink: 0;
}
.logo img { max-height: 46px; }
.logo-icon { font-size: 32px; }

.header-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    background: #f3f4f6;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: .25s;
}
.header-search:focus-within {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(76,175,80,.1);
}
.header-search input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.header-search button {
    padding: 0 24px;
    background: var(--brand);
    color: #fff;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}
.header-search button:hover { background: var(--brand-2); }

.header-actions { display: flex; gap: 10px; }
.action-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 11px;
    transition: .2s;
    min-width: 70px;
}
.action-btn:hover { background: #f0f8f1; color: var(--brand); }
.action-btn .icon { font-size: 22px; margin-bottom: 2px; }
.action-btn .badge {
    position: absolute;
    top: 2px;
    left: 8px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #4b5563;
    padding: 4px;
}

/* ═══════════ NAV ═══════════ */
.main-nav {
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.main-nav .container {
    display: flex;
    gap: 4px;
    padding: 6px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav .container::-webkit-scrollbar { display: none; }
.nav-item {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    transition: .2s;
}
.nav-item:hover { background: #f0f8f1; color: var(--brand); }

.mobile-menu {
    display: none;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f5f5f5;
}
.mobile-menu a:hover { background: #f0f8f1; color: var(--brand); }

/* ═══════════ STORIES (Instagram-Like) ═══════════ */
.stories-section {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.stories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.stories-scroll::-webkit-scrollbar { display: none; }

.story-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 90px;
    scroll-snap-align: start;
    cursor: pointer;
}
.story-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4CAF50, #FF9800, #F44336, #9C27B0, #2196F3, #4CAF50);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    animation: storyGlow 3s ease-in-out infinite;
}
@keyframes storyGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76,175,80,.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}
.story-item:hover .story-ring { transform: scale(1.08); }
.story-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    overflow: hidden;
}
.story-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.story-title {
    font-size: 11px;
    color: #4b5563;
    text-align: center;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════ MAIN ═══════════ */
.site-main { min-height: 50vh; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { margin-top: 60px; }

.footer-features {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 28px 0;
}
.ff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.ff-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}
.ff-icon {
    width: 50px;
    height: 50px;
    background: #f0f8f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.ff-item strong { display: block; font-size: 14px; color: #1f2937; margin-bottom: 2px; }
.ff-item small { color: #9ca3af; font-size: 12px; }

.footer-main {
    background: #1f2937;
    color: #9ca3af;
    padding: 50px 0 30px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(76,175,80,.3);
    display: inline-block;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    color: #9ca3af;
    font-size: 13px;
}
.footer-col a:hover { color: #fff; padding-right: 4px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}
.footer-logo .logo-icon { font-size: 28px; }

.about-text {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: .2s;
    padding: 0;
}
.social-links a:hover {
    background: var(--brand);
    transform: translateY(-3px);
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
}

.footer-bottom {
    background: #111827;
    padding: 20px 0;
}
.fb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.fb-inner a { color: var(--brand); font-weight: 600; }

/* ═══════════ SCROLL TOP ═══════════ */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(76,175,80,.35);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 900;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-block;
    padding: 12px 26px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(76,175,80,.3); }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-danger { background: #ef4444; }

/* ═══════════ CARDS ═══════════ */
.card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
    .header-search { display: none; }
    .mobile-menu-btn { display: block; }
    .action-btn .label { display: none; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-col.about { grid-column: 1 / -1; }
    .scroll-top { bottom: 90px; right: 12px; }
}

@media (max-width: 600px) {
    .topbar { font-size: 11px; }
    .topbar-left { display: none; }
    .logo { font-size: 20px; }
    .logo-icon { font-size: 26px; }
    .story-ring { width: 72px; height: 72px; }
    .story-item { width: 78px; }
    .footer-cols { grid-template-columns: 1fr; }
    .fb-inner { justify-content: center; text-align: center; }
}

/* ═══════════════════════════════════════════
   [STEP-06] Toast + Badge Animation
   ═══════════════════════════════════════════ */
@keyframes badgePop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.golpar-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-140px);
    background: #18181b;
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    z-index: 99999;
    opacity: 0;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 12px 44px rgba(0, 0, 0, .35);
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
    line-height: 1.6;
}
.golpar-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.golpar-toast.success { background: linear-gradient(135deg, #059669, #047857); }
.golpar-toast.error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.golpar-toast.info    { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.golpar-toast.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }

#cartBadge {
    display: flex !important;
    align-items: center;
    justify-content: center;
}