/* Improved Navbar Organization */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-utilities {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-utilities .hamburger {
    display: none;
}
@media (max-width: 768px) {
    .nav-utilities .hamburger {
        display: block;
        margin-left: 1rem;
    }
}

/* Size Chart Styles */
.size-chart-section {
    margin: 3rem 0;
    padding: 0 1rem;
}
.size-chart-section h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
    color: #111827;
}
.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.size-chart-table th, .size-chart-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 15px;
    text-align: center;
}
.size-chart-table th {
    background-color: #f9fafb;
    font-weight: 700;
    color: #374151;
}
.size-chart-table tr:nth-child(even) {
    background-color: #fcfcfc;
}
@media (max-width: 600px) {
    .size-chart-table th, .size-chart-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}
/* Hide body only when language is loading/switching to Arabic */
html.lang-loading body { display: none; }

/* Enhanced Product Card Styling - Modern Professional */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5; /* Standard fashion aspect ratio */
    background-color: #f3f4f6;
}
.product-img-link {
    display: block;
    width: 100%;
    height: 100%;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.product-card:hover .product-img {
    transform: scale(1.08); /* Subtle zoom effect */
}
/* Floating Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #ffffff;
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
}
.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translate(-50%, 0);
}
.quick-view-btn:hover {
    background: #000;
    color: #fff;
}
.product-info {
    padding: 1.25rem 1rem;
    text-align: center;
    background-color: #fff;
    position: relative;
    z-index: 2;
}
.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.product-card:hover .product-title {
    color: #c5a059; /* Gold accent for premium feel */
}
.product-price {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

/* --- MODERN PRODUCT DETAILS STYLES --- */
#product-details {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Balanced 45/55 split for better image visibility */
    gap: 4rem;
    margin-top: 1rem;
    align-items: start;
}
/* Gallery */
#pd-gallery { position: sticky; top: 100px; }
@media (max-width: 767px) {
    #product-details { grid-template-columns: 1fr; gap: 1.5rem; }
    #pd-gallery { position: static; max-width: 100%; margin: 0 auto; } /* Full width on mobile */
}
#pd-main-image-wrapper {
    background-color: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}
#pd-main-image { width: 100%; height: 100%; object-fit: cover; }
#pd-thumbnails { display: flex; gap: 0.5rem; justify-content: center; }
.pd-thumbnail {
    width: 76px; height: auto; aspect-ratio: 4/5; border: 2px solid transparent;
    border-radius: 6px; overflow: hidden; cursor: pointer; padding: 0;
    background: #f3f4f6; transition: all 0.2s;
}
.pd-thumbnail.selected { border-color: #111827; }
.pd-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb-container {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pd-thumb-label {
    font-size: 0.75rem; color: #6b7280; font-weight: 500;
}

/* Info */
#pd-info { padding-top: 0; width: 100%; }
#pd-title {
    font-family: 'Cinzel', serif; font-size: 1.5rem; color: #111827;
    margin-bottom: 0.25rem; line-height: 1.1;
}
#pd-price {
    font-family: 'Lato', sans-serif; font-size: 1.1rem; font-weight: 700; color: #111827;
    margin-bottom: 1rem;
}
#pd-description {
    color: #4b5563; line-height: 1.5; margin-bottom: 1.5rem; font-size: 0.9rem;
}
.pd-divider { border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }

/* Form */
.pd-group { margin-bottom: 1.5rem; }
.pd-label {
    font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: #111827; display: block; margin-bottom: 0.4rem;
}
.pd-label span { font-weight: 400; color: #6b7280; margin-left: 0.5rem; text-transform: none; }
.pd-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
#pd-size-guide-btn {
    background: none; border: none; color: #6b7280; text-decoration: underline;
    font-size: 0.75rem; cursor: pointer; padding: 0;
}

/* Colors */
.pd-color-options { display: flex; gap: 0.5rem; }
.pd-color-swatch {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    border: 1px solid #e5e7eb; position: relative; transition: transform 0.2s;
}
.pd-color-swatch.selected {
    transform: scale(1.1); box-shadow: 0 0 0 2px white, 0 0 0 3px #111827; border-color: transparent;
}

/* Sizes */
.pd-size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pd-size-box {
    min-width: 45px; height: 35px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; font-weight: 600;
    transition: all 0.2s; background: white; color: #111827; font-size: 0.9rem;
}
.pd-size-box:hover { border-color: #111827; }
.pd-size-box.selected { background: #111827; color: white; border-color: #111827; }

/* Quantity */
.pd-quantity-wrapper {
    display: inline-flex; align-items: center; border: 1px solid #e5e7eb;
    border-radius: 6px; padding: 3px;
}
.pd-qty-btn {
    width: 28px; height: 28px; border: none; background: transparent;
    cursor: pointer; color: #111827; border-radius: 4px; transition: background 0.2s;
}
.pd-qty-btn:hover { background: #f3f4f6; }
#quantity {
    width: 40px; text-align: center; border: none; font-weight: 600; font-size: 0.9rem;
    -moz-appearance: textfield;
}
#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Actions */
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.pd-actions button {
    padding: 0.75rem; font-size: 0.9rem; border-radius: 6px; text-transform: uppercase;
    letter-spacing: 0.05em; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.pd-btn-primary {
    background: #111827; color: white; border: 1px solid #111827;
}
.pd-btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.pd-btn-secondary {
    background: white; color: #111827; border: 1px solid #e5e7eb;
}
.pd-btn-secondary:hover { border-color: #111827; }

/* Delivery Card */
.pd-delivery-card {
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.pd-delivery-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
    color: #111827; font-weight: 700; font-size: 0.9rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
.pd-delivery-header i { color: #111827; }

.pd-delivery-timeline {
    display: flex; flex-direction: column;
}
.pd-timeline-row {
    display: flex; gap: 1rem; position: relative; padding-bottom: 1.5rem;
}
.pd-timeline-row:last-child { padding-bottom: 0; }

.pd-timeline-visual {
    display: flex; flex-direction: column; align-items: center; width: 16px; flex-shrink: 0;
}
.pd-dot {
    width: 10px; height: 10px; background: #e5e7eb; border-radius: 50%; z-index: 2;
}
.pd-dot.active {
    background: #111827; box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}
.pd-dot.target {
    background: #fff; border: 2px solid #111827; width: 12px; height: 12px;
}
.pd-line.vertical {
    width: 2px; background: #f3f4f6; flex-grow: 1; margin-top: 4px; margin-bottom: 4px;
}

.pd-timeline-content {
    display: flex; flex-direction: column; margin-top: -4px;
}
.pd-timeline-title {
    font-size: 0.85rem; font-weight: 600; color: #374151;
}
.pd-timeline-date {
    font-size: 0.8rem; color: #6b7280; margin-top: 2px;
}

.pd-delivery-footer {
    margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #f3f4f6;
    font-size: 0.8rem; color: #6b7280; display: flex; align-items: center; gap: 0.5rem;
}
.pd-delivery-footer i { color: #10b981; }
