/* 
 * Royal Product Details Pro
 * Main Stylesheet
 */

:root {
    --royal-primary: #e62e04;
    --royal-secondary: #f9f9f9;
    --royal-text: #333333;
    --royal-gray: #666666;
    --royal-light-border: #eaeaea;
    --royal-radius: 8px;
    --royal-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.royal-pdp-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: var(--royal-font);
    color: var(--royal-text);
}

.royal-pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Typography & General */
.royal-pdp-brand-label {
    color: var(--royal-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.royal-pdp-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #111;
}

.royal-pdp-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--royal-gray);
}

.royal-pdp-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges */
.royal-pdp-badges-row {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.royal-pdp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--royal-light-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.royal-pdp-badge svg {
    color: var(--royal-primary);
}

/* Info Card */
.royal-pdp-info-card-wrapper {
    margin: 30px 0;
}

.royal-pdp-info-card {
    display: flex;
    justify-content: space-between;
    background: #fdf5f5;
    padding: 20px;
    border-radius: var(--royal-radius);
    border: 1px solid #fcebeb;
}

.royal-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.royal-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.royal-info-text {
    display: flex;
    flex-direction: column;
}

.royal-info-label {
    font-size: 12px;
    color: var(--royal-primary);
    font-weight: 600;
}

.royal-info-value {
    font-size: 14px;
    font-weight: 500;
}

/* Price & Add to Cart */
.royal-pdp-price-wrapper {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}

.royal-pdp-price-wrapper del {
    color: #999;
    font-size: 18px;
    font-weight: 400;
    margin-right: 10px;
}

.royal-pdp-price-wrapper ins {
    text-decoration: none;
    color: var(--royal-primary);
}

/* Trust Strip */
.royal-pdp-trust-strip-wrapper {
    margin-top: 50px;
}
.royal-pdp-trust-strip {
    background: var(--royal-primary);
    color: #fff;
    padding: 20px 0;
    border-radius: var(--royal-radius);
}
.royal-trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.royal-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Gallery Layout (Desktop) */
.royal-pdp-gallery-wrapper {
    display: flex;
    gap: 20px;
    height: 600px;
}
.royal-pdp-thumbs-slider {
    width: 80px;
    height: 100%;
}
.royal-pdp-thumbs-slider .swiper-slide {
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--royal-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}
.royal-pdp-thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--royal-primary);
}
.royal-pdp-main-slider {
    flex: 1;
    border-radius: var(--royal-radius);
    overflow: hidden;
    background: var(--royal-secondary);
}
.royal-pdp-main-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.royal-video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 11px;
}
.mobile-only {
    display: none;
}
.royal-pdp-main-slider {
    position: relative;
}
.royal-pdp-gallery-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.royal-pdp-gallery-controls button {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.royal-pdp-mobile-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: var(--royal-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Sticky Bar */
.royal-pdp-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
}
.royal-sticky-price {
    font-size: 20px;
    font-weight: 700;
}
.royal-sticky-actions {
    display: flex;
    gap: 10px;
}
.btn-primary {
    background: var(--royal-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.btn-secondary {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Accordion */
.royal-pdp-accordion {
    border-bottom: 1px solid var(--royal-light-border);
    padding: 15px 0;
}
.royal-pdp-accordion summary {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    outline: none;
}
.royal-pdp-accordion summary::-webkit-details-marker {
    display: none;
}
.royal-pdp-accordion-content {
    margin-top: 15px;
    line-height: 1.6;
    color: var(--royal-gray);
}

/* Features Box */
.royal-pdp-features-box-wrapper {
    margin-top: 40px;
}
.royal-pdp-features-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--royal-light-border);
    border-radius: var(--royal-radius);
    padding: 25px;
    background: #fff;
}
.royal-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.royal-feature-icon {
    width: 50px;
    height: 50px;
    background: #fdf5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.royal-feature-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111;
}
.royal-feature-text p {
    font-size: 12px;
    color: var(--royal-gray);
    margin: 0;
    line-height: 1.4;
}

.royal-pdp-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}
.royal-pdp-divider::before,
.royal-pdp-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--royal-light-border);
}
.royal-pdp-divider::before {
    left: 0;
}
.royal-pdp-divider::after {
    right: 0;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .royal-pdp-mobile-tag {
        display: inline-block !important;
    }
    .royal-pdp-layout {
        grid-template-columns: 1fr;
    }
    .royal-pdp-gallery-wrapper {
        flex-direction: column-reverse;
        height: auto;
    }
    .royal-pdp-thumbs-slider {
        width: 100%;
        height: 80px;
    }
    .royal-pdp-main-slider {
        height: 400px;
    }
    .royal-trust-container {
        flex-direction: column;
        gap: 15px;
    }
    .royal-pdp-info-card {
        flex-direction: column;
        gap: 15px;
    }
    .royal-pdp-features-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .royal-pdp-sticky-bar {
        display: flex;
    }
    body {
        padding-bottom: 80px; /* space for sticky bar */
    }
}
