body {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* 9:16 Logic Optimized for 1000x1920 images */
.portrait-box {
    position: relative;
    border-radius: 1.4rem; 
    overflow: hidden;
    background-color: #f7f7f7;
    aspect-ratio: 9 / 16; /* PERFECT MATCH */
    width: 100%;
}

.portrait-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Correct behavior to show images full-size */
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-item {
    background-color: #fff;
    border-radius: 2rem;
    padding: 10px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.product-item:hover {
    border-color: #efefef;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.product-item:hover img {
    transform: scale(1.08);
}

/* Specialized Tags */
.luxury-discount {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #fff;
    color: #78350f;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 5;
}

.no-scrollbar::-webkit-scrollbar { display: none; }

/* Out of Stock Mask */
.stock-mask {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px) grayscale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.sold-pill {
    background: #121212;
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
}

/* Prices In Line Styling */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Info Dropdown Styling */
.info-content { transition: max-height 0.4s ease-out; }
.info-dropdown button i { transition: transform 0.3s; }
.info-dropdown button.active i { transform: rotate(180deg); }

/* Adaptive Mobile Spacing */
@media (max-width: 640px) {
    .product-item { padding: 8px; border-radius: 1.8rem; }
    .portrait-box { border-radius: 1.2rem; }
}