@font-face {
    font-family: 'VazirmatnBlack';
    src: url('font/Vazirmatn-Black.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
body, h1, h2, h3, h4, h5, h6, p, a, span, div, ul, li, input, button, textarea, select, label, strong, b, table, tr, td, th {
    font-family: 'VazirmatnBlack', sans-serif;
}
.fas, .far, .fa, .fa-solid, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}
body { 
    background-color: #ffffff !important; 
    margin: 0; 
    padding: 0; 
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}
.main-header {
    background-color: #000000 !important;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
#hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
#hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: 0.3s;
}
.site-logo {
    text-decoration: none;
}
.logo-text {
    color: #ffffff !important;
    font-size: 24px;
    text-decoration: none;
}
.main-footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 40px 0;
    margin-top: 50px;
}
.main-footer h4 {
    color: #ffffff !important;
    margin-bottom: 20px;
}
.main-footer p, .main-footer a, .main-footer .copyright p {
    color: #cccccc !important;
    text-decoration: none;
    line-height: 1.8;
}
.main-footer a:hover {
    color: #ffffff !important;
}
.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-footer ul li {
    margin-bottom: 10px;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    text-align: right;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 30px;
}
#side-dashboard {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    background-color: #050505;
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.6);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}
#side-dashboard.active {
    right: 0;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
}
#overlay.active {
    display: block;
}
.dashboard-header { 
    padding: 35px 20px; 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #111111;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 10;
}
.dashboard-header span { 
    font-size: 28px; 
    color: #ffffff;
    letter-spacing: 0.5px;
} 
#side-dashboard ul {
    list-style: none;
    padding: 20px 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#side-dashboard ul li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
}
#side-dashboard ul li a i {
    margin-left: 15px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}
#side-dashboard ul li a:hover {
    background-color: #1a1a1a;
    border-color: #333333;
    transform: translateX(-5px);
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
}
#side-dashboard ul li a:hover i {
    background-color: rgba(211, 47, 47, 0.2);
    color: #ff4081;
}
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#page-preloader.hide-preloader {
    opacity: 0;
    visibility: hidden;
}
.loader {
  width: 5em;
  height: 5em;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100% );
  animation: spin 3s infinite;
}
.loader::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100% );
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}
@keyframes spin {
  0% { transform: rotate(-45deg); }
  50% { transform: rotate(-360deg); border-radius: 50%; }
  100% { transform: rotate(-45deg); }
}
.scroll-item {
    opacity: 0;
    pointer-events: none;
}
.anim-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: auto;
}
.anim-scale-up {
    animation: scaleUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: auto;
}
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.9) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
h1, h2, h3, h4, .dashboard-header span, .main-grid-title {
    letter-spacing: -0.2px;
}
.footer-symbols { display: flex; align-items: center; gap: 15px; margin-top: 15px; flex-wrap: wrap; justify-content: flex-end; }
.enamad-symbol img, .aghayepardakht-symbol img { max-width: 100px; height: auto; }
.btn { 
    background-color: #d32f2f; 
    color: #fff !important;
    border: none;
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 16px; 
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}
.btn:hover {
    background-color: #b71c1c; 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}
#cart-icon-header {
    color: #fff;
    padding: 10px;
    border-radius: 0;
    background-color: transparent; 
    position: relative;
}
.main-header #cart-icon-header i {
    font-size: 24px;
    color: #ffffff; 
    transition: color 0.3s;
}
.main-header #cart-icon-header:hover i {
    color: #f0f0f0; 
}
#cart-count-header {
    background-color: #d32f2f; 
    color: white;
    padding: 2px 7px;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
}
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fcfcfc;
    z-index: 9999999;
    display: none;
    flex-direction: column;
}
.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#close-search {
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    padding: 10px;
}
#overlay-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 15px;
    background: transparent;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    overflow-y: auto;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.search-result-card {
    background: #ffffff;
    border: 1px solid #f0f0f1;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}
.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.search-result-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #fff;
}
.search-result-info {
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.search-result-title {
    font-size: 13px;
    color: #3f4064;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-price {
    font-size: 15px;
    color: #d32f2f;
}
#search-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}
#search-loader .loader {
    width: 3em;
    height: 3em;
}
.empty-search-msg {
    grid-column: span 2;
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #666;
}
:root {
    --primary-color-dark: #a53125;
    --border-color-light: #eee;
    --border-color-medium: #ccc;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --box-shadow-light: 0 8px 25px rgba(0,0,0,0.04);
    --box-shadow-heavy: 0 12px 35px rgba(0,0,0,0.08);
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --card-bg: #fff;
    --text-color: #1c1c1e;
    --text-muted: #666;
    --primary-color: #d32f2f;
}
.product-page-grid { 
    display: block; 
    margin-top: 20px; 
}
.product-visuals {
    width: 100%;
    background-color: transparent;
    position: sticky;
    top: 60px;
    z-index: 1;
    padding-bottom: 40px;
    border: none;
    box-shadow: none;
}
.gallery-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-heavy);
}
.gallery-main-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: var(--border-radius-lg);
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}
.gallery-thumbnails {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    overflow-x: auto;
    background-color: transparent;
    border-top: none;
}
.gallery-thumbnails img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow-light);
}
.gallery-thumbnails img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.gallery-thumbnails img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}
.product-main-details {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    border-radius: 30px 30px 0 0;
    padding: 30px 15px 0 15px;
    margin-top: -50px;
    margin-left: -15px;
    margin-right: -15px;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.06);
}
.product-full-description, .related-products-section {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 992px) { 
    .product-page-grid { 
        display: grid;
        grid-template-columns: 45fr 55fr; 
        gap: 50px;
        align-items: flex-start;
        margin-top: 40px;
    } 
    .product-visuals {
        position: sticky;
        top: 90px;
        padding-bottom: 0;
        z-index: 5;
    }
    .product-main-details {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: transparent;
    }
    .product-full-description, .related-products-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        background-color: transparent;
    }
}
.product-main-details h1 { font-size: 2.2rem; color: var(--text-color); margin-bottom: 15px; }
.product-main-details .category { 
    background-color: #f0f0f5; 
    color: var(--text-muted); 
    padding: 8px 20px; 
    border-radius: 30px; 
    display: inline-block; 
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.product-full-description {
    margin-top: 50px;
    border: none;
    box-shadow: none;
}
.description-box-inner {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid #e5e5ea;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.description-box-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #ff6b6b);
}
.description-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #f0f0f5;
    padding-bottom: 20px;
}
.description-header i {
    font-size: 28px;
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
    padding: 15px;
    border-radius: 16px;
}
.description-header h2 {
    font-size: 1.8rem;
    color: #1c1c1e;
    margin: 0;
}
.description, .description * {
    font-family: 'VazirmatnBlack', sans-serif !important;
}
.description-wrapper {
    text-align: right;
    line-height: 2.2;
    color: #333333;
    font-size: 1.1rem;
}
.description {
    max-height: 120px; 
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    margin-bottom: 10px;
}
.description.is-long:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, #ffffff 15%, transparent);
}
.toggle-description-btn {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: none;
}
.toggle-description-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}
.form-container { 
    background-color: var(--card-bg); 
    padding: 30px; 
    border-radius: var(--border-radius-lg); 
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--border-color-light);
}
.form-container h2 { font-size: 1.6rem; margin-bottom: 30px; text-align: center; }
.form-section { margin-bottom: 35px; }
.form-section h3 { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid #f0f0f5; padding-bottom: 15px; }
.color-options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.color-option {
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.color-option input[type="radio"] {
    display: none;
}
.color-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}
.color-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.color-option input[type="radio"]:checked + .color-circle {
    border: 4px solid var(--primary-color); 
    box-shadow: 0 0 0 4px rgba(255,255,255,0.8) inset, 0 8px 20px rgba(211, 47, 47, 0.4); 
    transform: scale(1.2);
}
.color-option input[type="radio"]:checked + .color-circle::after {
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
    font-size: 18px;
}
.color-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c1c1e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    margin-bottom: 8px;
    pointer-events: none;
    z-index: 10;
}
.color-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1c1c1e transparent transparent transparent;
}
.color-option:hover .color-tooltip {
    opacity: 1;
    visibility: visible;
}
.options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.option-card {
    background-color: #fdfdfd;
    padding: 20px 15px; border-radius: 16px; cursor: pointer;
    border: 2px solid #e5e5ea;
    transition: all 0.3s ease;
    text-align: center; position: relative;
}
.option-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.option-card.selected {
    background-color: var(--primary-color); border-color: var(--primary-color);
    color: #fff; transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}
.option-card input[type="radio"] { display: none; }
.option-card .label { font-size: 1.1rem; color: var(--text-color); margin-bottom: 8px; transition: color 0.3s ease; }
.option-card .price { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.option-card .price .price-del { margin: 0; font-size: 0.9rem; }
.option-card .price span { white-space: nowrap; font-size: 1rem; color: var(--text-muted); transition: color 0.3s ease; }
.option-card.selected .label, .option-card.selected .price span { color: #fff; }
.option-card .checkmark {
    position: absolute; top: 12px; right: 12px; font-size: 1.2rem; color: #fff;
    opacity: 0; transform: scale(0.5); transition: all 0.3s ease;
}
.option-card.selected .checkmark { opacity: 1; transform: scale(1); }
.count-input-group {
    display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 20px;
}
.count-input-group input {
    width: 120px; 
    text-align: center; font-size: 1.4rem;
    color: var(--text-color); background-color: #fff;
    border: 2px solid #e5e5ea;
    border-radius: 16px; padding: 12px;
    -moz-appearance: textfield;
    transition: all 0.3s;
}
.count-input-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15); }
.count-input-group input::-webkit-outer-spin-button, 
.count-input-group input::-webkit-inner-spin-button { 
    -webkit-appearance: none; margin: 0; 
}
.count-input-group .count-btn {
    background-color: var(--primary-color); color: white; border: none;
    font-size: 1.5rem; cursor: pointer; border-radius: 16px;
    transition: all 0.3s ease;
    width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}
.count-input-group .count-btn:hover { background-color: var(--primary-color-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3); }
.count-input-group .count-btn:active { transform: scale(0.95); }
.range-info { 
    text-align: center; font-size: 0.95rem; margin-top: 15px; 
    color: var(--error-color); 
    min-height: 20px;
}
.form-fields-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .form-fields-grid { grid-template-columns: repeat(2, 1fr); } }

.variable-options-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.variation-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.05rem;
    color: var(--text-color);
    background-color: #fdfdfd;
    border: 2px solid #e5e5ea;
    border-radius: 16px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231c1c1e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: left 15px top 50%;
    background-size: 14px auto;
    font-family: inherit;
    cursor: pointer;
}
.variation-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
    background-color: #fff;
}

.form-group label {
    display: block; font-size: 1rem;
    color: #2c2c2e; margin-bottom: 10px; text-align: right;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"] {
    width: 100%;
    padding: 15px 18px;
    font-size: 1.05rem;
    color: var(--text-color);
    background-color: #fdfdfd;
    border: 2px solid #e5e5ea;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-group input::placeholder {
    color: #a1a1a6;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
    background-color: #fff;
}
.form-group.has-error input, .form-group.has-error select { border-color: var(--error-color) !important; }
.error-message { color: var(--error-color); font-size: 0.9rem; margin-top: 8px; text-align: right;}

.cart-summary {
    background: linear-gradient(145deg, #fdfdfd, #f5f5f7);
    padding: 20px 25px;
    border-radius: 20px;
    border: 2px solid #eaeaea;
    margin-bottom: 25px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
}
.summary-label {
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
    color: #333;
}
.summary-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

#form-toast {
    padding: 15px 30px; border-radius: 16px; color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10; display: flex; align-items: center; gap: 12px;
    max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
    margin-bottom: 0; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#form-toast.show { max-height: 100px; opacity: 1; padding-top: 15px; padding-bottom: 15px; margin-bottom: 20px; }
#form-toast.success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
#form-toast.error { background: linear-gradient(135deg, #c0392b, #e74c3c); }
#toast-message { font-size: 1.05rem; }
.related-products-section { margin-top: 60px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
    padding: 10px 0 30px 0;
}
.product-card {
    background-color: #ffffff; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f1;
    height: 100%;
    padding: 12px 12px 16px 12px;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    box-shadow: var(--box-shadow-heavy);
    transform: translateY(-5px);
    z-index: 2;
}
.product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 14px;
}
.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-card .product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d32f2f;
    color: #fff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}
.product-card .product-content {
    text-align: right;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    padding: 0 5px;
}
.product-card .product-title {
    font-size: 15px;
    color: #1c1c1e;
    margin-bottom: 10px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}
.product-card:hover .product-title { color: var(--primary-color); }
.product-card .product-category { font-size: 12px; color: #8e8e93; margin-bottom: 15px; }
.product-card .product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 12px;
}
.product-card .product-price span:first-child { font-size: 12px; color: #8e8e93; }
.product-card .product-price .price { font-size: 17px; color: var(--primary-color); }

.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.fullscreen-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}
.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@keyframes zoomIn {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.price-del { text-decoration: line-through; color: #a1a1a6; font-size: 0.9em; opacity: 0.8; white-space: nowrap; }
.price-sale { color: var(--primary-color); font-weight: bold; white-space: nowrap; }

#summary-regular-price {
    font-size: 0.95rem;
    color: #a1a1a6;
    text-decoration: line-through;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

#summary-total-price { 
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    line-height: 1.2;
}

.unit-price-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    background: #fdfdfd;
    padding: 12px 15px;
    border-radius: 16px;
    border: 1px dashed #eaeaea;
}

.unit-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: #333;
}

.unit-price-values {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.unit-price-values .price-del {
    font-size: 1rem;
    margin: 0;
}

.unit-price-values .price-sale {
    font-size: 1.3rem;
}

.unit-price-values .currency {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    white-space: nowrap;
}

.shipping-time-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 30px; font-size: 0.9rem; font-weight: bold; margin-bottom: 25px; margin-left: 8px; background-color: rgba(25, 118, 210, 0.1); color: #1976d2; border: 1px solid rgba(25, 118, 210, 0.3); }
.stock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 30px; font-size: 0.9rem; font-weight: bold; margin-bottom: 25px; }
.stock-badge.in-stock { background-color: rgba(39, 174, 96, 0.1); color: #27ae60; border: 1px solid rgba(39, 174, 96, 0.3); }
.stock-badge.out-of-stock { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.disabled-btn { background-color: #b0b0b0 !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; pointer-events: none; }

@media (max-width: 400px) {
    .summary-label {
        font-size: 1.05rem;
    }
    #summary-total-price {
        font-size: 1.2rem;
    }
    #summary-regular-price {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card .product-title { font-size: 13px; }
    .product-card .product-price .price { font-size: 15px; }
    .description-box-inner { padding: 25px; }
    .description-header h2 { font-size: 1.5rem; }
    .description-header i { font-size: 22px; padding: 12px; }
    .shipping-time-badge, .stock-badge { font-size: 0.85rem; padding: 5px 12px; }
}