:root {
    --main-color: #FFAE56;
    --primary-color: #FFAE56;
}


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

body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: #fdfbf9;;
    color: #333;
    direction: rtl;
}

.site-header {
    background: #fff;
    text-align: center;
    padding: 10px;
    border-bottom: 4px solid var(--main-color);
}
.logo img { max-height: 180px; }
.cat-grid {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.cat-grid-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cat-grid-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    z-index: 2;
}
.cat-grid-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fdfbf9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-grid-img img {
    width: 75%;
    height: 75%;
    object-fit: cover;
    display: block;
}
.cat-grid-title {
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    color: var(--main-color);
}
@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}
.cat-link-img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    vertical-align: middle;
    margin-left: 4px;
}
.cat-filter {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 14px;
    background: #fff;
    position: sticky;
    top: 41px;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.cat-filter a {
    flex: 0 0 auto;
    text-decoration: none;
    color: #464040;
    background: var(--main-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    white-space: nowrap;
    transition: .2s;
    cursor: pointer;
    font-weight: 500;
}
.cat-filter a.active,
.cat-filter a:hover {
    background: #f09336;
    color: #fff;
}
.menu { max-width: 700px; margin: 0 auto; padding: 16px; }
.cat-section { margin-bottom: 28px; scroll-margin-top: 80px; }
.cat-section h2 {
    font-size: 18px;
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.item-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.item-info h3 { font-size: 16px; margin-bottom: 4px; }
.item-info .desc { font-size: 13px; color: #888; }
.item-price {
    font-weight: bold;
    color: var(--main-color);
    white-space: nowrap;
    margin-right: 12px;
    font-size: 20px;
}

.empty { text-align: center; color: #999; padding: 40px; }

@media (max-width: 480px) {
    .cat-filter { justify-content: flex-start; }
    .item-info h3 { font-size: 15px; }
    .item-price { font-size: 14px; }
    .insta-img{
        height: 10px;
        margin-left: 7px;
    }
}

.item-card.unavailable {
    opacity: 0.55;
    filter: grayscale(100%);
    position: relative;
}
.item-card.unavailable:hover {
    transform: none;
    box-shadow: none;
}
.item-card.unavailable .item-price {
    text-decoration: line-through;
    color: #999;
}

.badge-unavailable {
    display: inline-block;
    font-size: 0.7rem;
    background: #bbb;
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 6px;
    vertical-align: middle;
}

.cat-desc {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #777;
    background: #fafafa;
    border-radius: 8px;
}


#splash-screen {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#splash-screen img {
    max-width: 180px;
    animation: splashPulse 1s ease-in-out;
}

#splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}

@keyframes splashPulse {
    0%   { transform: scale(0.9); opacity: 0; }
    50%  { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}

footer {
    background-color: #1e272e;
    color: #f5f6fa; 
    padding: 50px 15px 2px 15px;
    margin-top: 80px;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.footer-section h3 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    color: var(--primary-color);
    display: inline-block;
}

.footer-section p, .footer-section a {
    font-size: 13.5px;
    color: #dcdde1;
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a {
    font-weight: bold;
    color: var(--primary-color);
}
.instagram{
    display: block;
    color: var(--primary-color);
}

.footer-section a:hover {
    text-shadow: 0 0 10px rgba(255, 174, 86, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: 5px;
    padding-top: 20px;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #7f8c8d;
}

.footer-icon {
    margin-left: 6px;
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

/* لینک تلفن: inline بماند و درون خط p نمایش داده شود */
.footer-section p a[href^="tel:"] {
    display: inline;
    font-weight: normal;
    color: #dcdde1;
    text-decoration: none;
}
.footer-section p a[href^="tel:"]:hover {
    text-decoration: underline;
    text-shadow: none;
}

.insta-img{
    height: 17px;
    margin-left: 7px;
}

.sabagroup{
    color: #7f8c8d;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sabagroup:hover{
    color: #d684d6;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.sabaicon{
    height: 15px;
    padding-right: 5px;
    margin-bottom: 2px;
}

.footer-icon{
    color: var(--main-color);;
}

.tax-notice {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2b2b2b;
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 10px 16px;
  line-height: 1.7;
  border-bottom: 2px solid #c9a227;
}

.tax-notice strong {
  color: #f0c14b;
}

@media (max-width: 600px) {
  .tax-notice {
    font-size: 12px;
    padding: 8px 12px;
    .cat-filter { top: 36px; }
  }
}
