/* هویت بصری فروشگاه برنج؛ جدا از قالب قدیمی برای نگهداری امن‌تر */
:root {
    --rice-green: #1f5c42;
    --rice-dark: #143f2e;
    --rice-soft: #eaf3ed;
    --rice-gold: #d6a84b;
    --rice-ink: #18251f;
}

body { background: #f7f8f5; color: var(--rice-ink); }
.rice-announcement { background: var(--rice-dark); color: #fff; font-size: 12px; }
.rice-announcement__inner { align-items: center; display: flex; gap: 30px; justify-content: space-between; min-height: 36px; }
.rice-announcement span, .rice-announcement a { align-items: center; color: #fff; display: inline-flex; gap: 6px; }
.rice-announcement a:hover { color: #f5d78d; text-decoration: none; }
.rice-announcement i { color: #f1cf7a; font-size: 16px; }

header.main-header .search-area form.search input:focus { border-color: var(--rice-green); box-shadow: 0 0 0 3px rgba(31, 92, 66, .11); }
header.main-header .main-menu .list > .list-item > a:hover,
header.main-header .dropdown-menu .dropdown-item:hover,
header.main-header .side-menu a:hover { color: var(--rice-green); }
header.main-header .main-menu .list > .list-item > a::before { background-color: var(--rice-gold); }

.rice-hero {
    background: linear-gradient(118deg, #fdfaf1 0%, #f4edda 47%, #e0ece3 100%);
    border: 1px solid rgba(31, 92, 66, .1);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(27, 59, 45, .09);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    margin: 28px 0 18px;
    min-height: 410px;
    overflow: hidden;
    position: relative;
}
.rice-hero::before { background-image: radial-gradient(rgba(31, 92, 66, .1) 1px, transparent 1px); background-size: 18px 18px; content: ""; inset: 0; opacity: .3; pointer-events: none; position: absolute; }
.rice-hero__content { align-self: center; padding: 52px 58px; position: relative; z-index: 2; }
.rice-hero__eyebrow { align-items: center; color: var(--rice-green); display: inline-flex; font-size: 14px; font-weight: 800; gap: 7px; margin-bottom: 14px; }
.rice-hero__eyebrow i { font-size: 22px; }
.rice-hero h1 { color: var(--rice-dark); font-size: 38px; font-weight: 900; line-height: 1.55; margin: 0 0 10px; }
.rice-hero p { color: #52645b; font-size: 15px; line-height: 2.1; margin: 0; max-width: 630px; }
.rice-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rice-btn { align-items: center; border: 1px solid var(--rice-green); border-radius: 12px; display: inline-flex; font-size: 13px; font-weight: 900; gap: 10px; justify-content: center; min-height: 48px; padding: 0 20px; transition: .2s ease; }
.rice-btn--primary { background: var(--rice-green); box-shadow: 0 12px 24px rgba(31, 92, 66, .2); color: #fff; }
.rice-btn--primary:hover { background: var(--rice-dark); color: #fff; text-decoration: none; transform: translateY(-2px); }
.rice-btn--ghost { background: rgba(255, 255, 255, .55); color: var(--rice-green); }
.rice-btn--ghost:hover { background: #fff; color: var(--rice-dark); text-decoration: none; }
.rice-hero__notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.rice-hero__notes span { align-items: center; color: #52645b; display: inline-flex; font-size: 11px; font-weight: 700; gap: 5px; }
.rice-hero__notes i { color: var(--rice-green); font-size: 17px; }
.rice-hero__visual { align-items: center; display: flex; justify-content: center; min-height: 410px; position: relative; }
.rice-hero__visual::before { background: rgba(31, 92, 66, .1); border: 1px solid rgba(31, 92, 66, .08); border-radius: 50%; content: ""; height: 330px; position: absolute; width: 330px; }
.rice-hero__product { align-items: center; background: radial-gradient(circle at 50% 38%, #fffdf7 0%, #f8f1df 68%, #ede2c8 100%); border: 8px solid rgba(255, 255, 255, .68); border-radius: 50%; box-shadow: 0 28px 60px rgba(29, 63, 47, .14), inset 0 0 0 1px rgba(214, 168, 75, .12); display: flex; height: 280px; justify-content: center; overflow: hidden; position: relative; width: 280px; z-index: 2; }
.rice-hero__product img { filter: drop-shadow(0 15px 12px rgba(39, 55, 44, .2)); height: 94%; object-fit: contain; transform: translateY(5px); width: 94%; }
.rice-hero__seal { align-items: center; background: var(--rice-green); border: 5px solid #f4edda; border-radius: 50%; bottom: 42px; color: #fff; display: flex; flex-direction: column; height: 94px; justify-content: center; left: 32px; position: absolute; width: 94px; z-index: 3; }
.rice-hero__seal strong { color: #f3d17c; font-size: 20px; font-weight: 900; }
.rice-hero__seal span { font-size: 10px; font-weight: 700; }
.rice-hero__grain { background: #e3bd67; border-radius: 80% 20% 80% 20%; height: 11px; position: absolute; transform: rotate(35deg); width: 35px; }
.rice-hero__grain--one { right: 34px; top: 60px; }
.rice-hero__grain--two { right: 72px; top: 95px; transform: rotate(75deg); }
.rice-hero__grain--three { bottom: 70px; right: 44px; transform: rotate(115deg); }

.rice-shopping-guide { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 28px; }
.rice-shopping-guide > a { align-items: center; background: #fff; border: 1px solid #e4e9e3; border-radius: 16px; color: var(--rice-ink); display: grid; gap: 10px; grid-template-columns: 42px minmax(0, 1fr) 18px; min-height: 82px; padding: 12px 14px; transition: .2s ease; }
.rice-shopping-guide > a:hover { border-color: rgba(31, 92, 66, .35); box-shadow: 0 12px 25px rgba(29, 63, 47, .08); text-decoration: none; transform: translateY(-2px); }
.rice-shopping-guide > a > i:first-child { align-items: center; background: var(--rice-soft); border-radius: 12px; color: var(--rice-green); display: flex; font-size: 23px; height: 42px; justify-content: center; }
.rice-shopping-guide > a > i:last-child { color: #9aab9f; font-size: 20px; }
.rice-shopping-guide span, .rice-shopping-guide strong, .rice-shopping-guide small { display: block; }
.rice-shopping-guide strong { font-size: 13px; font-weight: 900; margin-bottom: 3px; }
.rice-shopping-guide small { color: #7b8981; font-size: 10px; line-height: 1.6; }
.home-upgrade .section-title h2 { color: var(--rice-dark); }
.home-upgrade .product-card .product-price, .home-upgrade .card-horizontal-product-price span { color: var(--rice-green); }

.rice-package-picker { border-bottom: 1px solid #e4ebf3; padding: 14px 0; }
.rice-package-picker__title { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.rice-package-picker__title span { color: var(--rice-dark); font-size: 13px; font-weight: 900; }
.rice-package-picker__title small { color: #75847c; font-size: 10px; }
.rice-package-options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rice-package-option { background: #fff; border: 1px solid #dfe7e2; border-radius: 10px; color: var(--rice-ink); cursor: pointer; min-height: 66px; padding: 9px 10px; position: relative; text-align: right; transition: .18s ease; }
.rice-package-option:hover { border-color: var(--rice-green); }
.rice-package-option.active { background: var(--rice-soft); border-color: var(--rice-green); box-shadow: inset 0 0 0 1px var(--rice-green); }
.rice-package-option strong, .rice-package-option span { display: block; }
.rice-package-option strong { font-size: 12px; font-weight: 900; line-height: 1.8; }
.rice-package-option span { color: #697970; font-size: 9px; line-height: 1.7; }
.rice-package-option em { background: #eef1ef; border-radius: 6px; color: #8b9690; font-size: 9px; font-style: normal; left: 6px; padding: 2px 5px; position: absolute; top: 6px; }
.rice-package-option.sold-out { cursor: not-allowed; opacity: .55; }
.rice-bag-quantity { align-items: center; border-bottom: 1px solid #e4ebf3; display: flex; justify-content: space-between; padding: 14px 0; }
.rice-bag-quantity strong, .rice-bag-quantity span { display: block; }
.rice-bag-quantity strong { color: var(--rice-dark); font-size: 13px; font-weight: 900; }
.rice-bag-quantity span { color: #748179; font-size: 10px; margin-top: 3px; }
.rice-quantity-control { align-items: center; background: #fff; border: 1px solid #dfe7e2; border-radius: 10px; display: grid; grid-template-columns: 34px 34px 34px; min-height: 38px; overflow: hidden; }
.rice-quantity-control button { background: transparent; border: 0; color: var(--rice-green); cursor: pointer; font-size: 20px; height: 38px; }
.rice-quantity-control button:disabled { color: #c7cfca; cursor: not-allowed; }
.rice-quantity-control output { color: var(--rice-ink); font-size: 13px; font-weight: 900; text-align: center; }
.rice-unit-price { color: #76837c; display: block; font-size: 10px !important; margin-top: 2px; }
.rice-identity-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; }
.rice-identity-grid > div { background: #f7faf8; border: 1px solid #e1e9e4; border-radius: 10px; padding: 9px 11px; }
.rice-identity-grid span, .rice-identity-grid strong { display: block; }
.rice-identity-grid span { color: #75847b; font-size: 10px; }
.rice-identity-grid strong { color: var(--rice-dark); font-size: 12px; margin-top: 3px; }
.rice-compare-link { align-items: center; border: 1px dashed #b8c9be; border-radius: 10px; color: var(--rice-green); display: flex; font-size: 12px; font-weight: 800; gap: 7px; justify-content: center; margin-top: 12px; min-height: 42px; }
.rice-compare-link:hover { background: var(--rice-soft); color: var(--rice-dark); text-decoration: none; }
.rice-shipping-estimator { border-bottom: 1px solid #e4ebf3; padding: 14px 0; }
.rice-shipping-estimator label { color: var(--rice-dark); display: block; font-size: 12px; font-weight: 900; margin-bottom: 7px; }
.rice-shipping-estimator select { background: #fff; border: 1px solid #dfe7e2; border-radius: 9px; color: #405047; font-family: inherit; font-size: 11px; min-height: 40px; padding: 0 8px; width: 100%; }
.rice-shipping-estimator p { background: var(--rice-soft); border-radius: 8px; color: var(--rice-green); font-size: 10px; line-height: 1.8; margin: 8px 0 0; padding: 7px 9px; }
.rice-service-actions { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.rice-service-actions a { align-items: center; background: #fff; border: 1px solid #dfe7e2; border-radius: 8px; color: #42564a; display: flex; font-size: 9px; gap: 4px; justify-content: center; min-height: 38px; padding: 4px; text-align: center; }
.rice-service-actions a:hover { border-color: var(--rice-green); color: var(--rice-green); text-decoration: none; }
.rice-cook-guarantee { align-items: center; background: #fff8e7; border: 1px solid #efddb0; border-radius: 10px; color: #69551e; display: grid; gap: 8px; grid-template-columns: 30px 1fr; margin-top: 10px; padding: 9px; }
.rice-cook-guarantee > i { color: #b48318; font-size: 25px; }
.rice-cook-guarantee strong, .rice-cook-guarantee span { display: block; }
.rice-cook-guarantee strong { font-size: 10px; margin-bottom: 2px; }
.rice-cook-guarantee span { font-size: 8px; line-height: 1.7; }
.rice-review-stars { color: #e3aa2e; direction: ltr; display: inline-flex; font-size: 17px; margin: 6px 0; }
.rice-product-faq { background: #fff; border: 1px solid #e1e9e4; border-radius: 14px; padding: 20px; }
.rice-product-faq details { border-bottom: 1px solid #edf1ee; padding: 12px 4px; }
.rice-product-faq details:last-child { border-bottom: 0; }
.rice-product-faq summary { color: var(--rice-dark); cursor: pointer; font-size: 13px; font-weight: 900; }
.rice-product-faq p { color: #5e6f65; font-size: 12px; line-height: 2; margin: 10px 0 0; }
.rice-tool-page { padding-top: 28px; }
.rice-tool-hero { background: linear-gradient(120deg, var(--rice-dark), var(--rice-green)); border-radius: 18px; color: #fff; margin-bottom: 18px; padding: 30px; }
.rice-tool-hero span { color: #f2d17e; font-size: 12px; font-weight: 900; }
.rice-tool-hero h1 { color: #fff; font-size: 27px; font-weight: 900; margin: 8px 0; }
.rice-tool-hero p { color: rgba(255,255,255,.8); font-size: 13px; margin: 0; }
.rice-tool-form { background: #fff; border: 1px solid #e1e9e4; border-radius: 14px; margin-bottom: 20px; padding: 20px; }
.rice-tool-form label { color: var(--rice-dark); font-size: 12px; font-weight: 900; }
.rice-tool-form .form-control { border-color: #dfe7e2; border-radius: 9px; font-size: 12px; min-height: 44px; }
.rice-compare-table-wrap { background: #fff; border: 1px solid #e1e9e4; border-radius: 14px; overflow-x: auto; padding: 8px; }
.rice-compare-table { border-collapse: collapse; min-width: 760px; width: 100%; }
.rice-compare-table th, .rice-compare-table td { border-bottom: 1px solid #edf1ee; color: #4f6157; font-size: 12px; padding: 13px; text-align: center; }
.rice-compare-table tbody th { background: #f7faf8; color: var(--rice-dark); text-align: right; }
.rice-compare-table thead img { display: block; height: 110px; margin: auto; object-fit: contain; width: 120px; }
.rice-compare-table thead a { color: var(--rice-dark); display: block; font-weight: 900; margin-top: 8px; }
.rice-result-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.rice-result-grid article { background: #fff; border: 1px solid #e1e9e4; border-radius: 14px; display: grid; gap: 14px; grid-template-columns: 130px 1fr; padding: 14px; }
.rice-result-grid article img { height: 130px; object-fit: contain; width: 130px; }
.rice-result-grid article h2 { color: var(--rice-dark); font-size: 15px; font-weight: 900; margin: 4px 0; }
.rice-result-grid article small, .rice-result-grid article p { color: #738178; font-size: 10px; }
.rice-result-grid article strong { color: var(--rice-green); display: block; font-size: 14px; }
.rice-result-grid article a { color: var(--rice-green); display: inline-block; font-size: 11px; font-weight: 900; margin-top: 8px; }
.rice-request-form { margin-left: auto; margin-right: auto; max-width: 850px; }
.rice-request-context { align-items: center; background: #f7faf8; border-radius: 10px; display: flex; gap: 12px; margin-bottom: 18px; padding: 10px; }
.rice-request-context img { background: #fff; border-radius: 8px; height: 64px; object-fit: contain; width: 64px; }
.rice-request-context span, .rice-request-context strong { display: block; }
.rice-request-context span { color: #75847b; font-size: 10px; }
.rice-request-context strong { color: var(--rice-dark); font-size: 13px; margin-top: 4px; }

@media (max-width: 991px) {
    .rice-hero { grid-template-columns: minmax(0, 1fr) 300px; }
    .rice-hero__content { padding: 38px 34px; }
    .rice-hero h1 { font-size: 30px; }
    .rice-hero__product { height: 230px; width: 230px; }
    .rice-hero__visual::before { height: 270px; width: 270px; }
    .rice-shopping-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .rice-announcement__inner { justify-content: center; min-height: 32px; }
    .rice-announcement__inner > span:first-child { font-size: 11px; }
    .rice-announcement__inner > a { display: none; }
    .rice-hero { border-radius: 18px; grid-template-columns: 1fr; margin-top: 18px; min-height: 0; }
    .rice-hero__content { padding: 30px 22px 18px; text-align: center; }
    .rice-hero h1 { font-size: 25px; line-height: 1.7; }
    .rice-hero p { font-size: 13px; }
    .rice-hero__actions, .rice-hero__notes { justify-content: center; }
    .rice-btn { flex: 1 1 140px; padding: 0 12px; }
    .rice-hero__visual { min-height: 270px; }
    .rice-hero__visual::before { height: 230px; width: 230px; }
    .rice-hero__product { height: 200px; width: 200px; }
    .rice-hero__seal { bottom: 20px; height: 78px; left: 18%; width: 78px; }
    .rice-hero__seal strong { font-size: 17px; }
    .rice-shopping-guide { gap: 8px; grid-template-columns: 1fr; }
    .rice-shopping-guide > a { min-height: 70px; }
    .rice-package-options { grid-template-columns: 1fr; }
    .rice-identity-grid { grid-template-columns: 1fr; }
    .rice-tool-hero { border-radius: 14px; padding: 22px 18px; }
    .rice-tool-hero h1 { font-size: 21px; }
    .rice-result-grid { grid-template-columns: 1fr; }
}
