/* ============================================
   Shop Store - Base Styles
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ss-font-family);
    background-color: var(--ss-background);
    color: var(--ss-text);
    line-height: 1.8;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.6;
    color: var(--ss-text);
    margin-bottom: 0.5rem;
}

h1 { font-size: var(--ss-font-size-3xl); }
h2 { font-size: var(--ss-font-size-2xl); }
h3 { font-size: var(--ss-font-size-xl); }
h4 { font-size: var(--ss-font-size-lg); }
h5 { font-size: var(--ss-font-size-base); }

a {
    color: var(--ss-primary);
    text-decoration: none;
    transition: color var(--ss-transition-fast);
}

a:hover {
    color: var(--ss-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--ss-primary);
    outline-offset: 2px;
}

/* Container */
.ss-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--ss-spacing-lg);
}

/* Section */
.ss-section {
    padding: var(--ss-spacing-2xl) 0;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .ss-container {
        padding: 0 var(--ss-spacing-md);
    }
    
    .ss-section {
        padding: var(--ss-spacing-xl) 0;
    }
}

/* === منوی کشوی موبایل — قوانین قطعی === */
.offcanvas {
  display: none !important;
  position: fixed;
  top: 0;
  z-index: 1050;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,.15);
  flex-direction: column;
  transition: none;
}
.offcanvas.show {
  display: flex !important;
}
.offcanvas-start {
  right: 0;
  left: auto;
  transform: none;
}
.offcanvas-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0,0,0,.5);
}
.offcanvas-backdrop.show {
  display: block;
}
