/* ============================================
   RMS Product Page - Premium Design v2
   ============================================ */

:root {
    --rms-primary: #ef3e43;
    --rms-primary-dark: #d32f2f;
    --rms-primary-light: #ffeaea;
    --rms-accent: #ef3e43;
    --rms-text: #1a1a1a;
    --rms-text-secondary: #444;
    --rms-text-muted: #888;
    --rms-border: #ddd;
    --rms-border-light: #eee;
    --rms-bg: #ffffff;
    --rms-bg-light: #f7f8fa;
    --rms-bg-info: #eef6ff;
    --rms-info-border: #3b82f6;
    --rms-success: #22c55e;
    --rms-error: #ef4444;
    --rms-price-color: #ef3e43;
    --rms-radius: 8px;
    --rms-radius-lg: 12px;
    --rms-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --rms-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --rms-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rms-transition: 0.2s ease;
}

/* ---- Hide site elements on product page ---- */
body.rms-product-page-active .site-header,
body.rms-product-page-active .site-footer,
body.rms-product-page-active .ast-above-header-wrap,
body.rms-product-page-active .ast-below-header-wrap,
body.rms-product-page-active #ast-scroll-top,
body.rms-product-page-active .woocommerce-breadcrumb,
body.rms-product-page-active .ast-breadcrumbs-wrapper,
body.rms-product-page-active .elementor-widget-woocommerce-breadcrumb,
body.rms-product-page-active .ast-single-post-order,
body.rms-product-page-active .related.products,
body.rms-product-page-active .up-sells,
body.rms-product-page-active .woocommerce-tabs,
body.rms-product-page-active .ast-woo-shop-archive-btn,
body.rms-product-page-active #secondary,
body.rms-product-page-active aside.sidebar,
body.rms-product-page-active .site-content .ast-container > aside {
    display: none !important;
}

body.rms-product-page-active .site-content .ast-container,
body.rms-product-page-active .site-content .entry-content,
body.rms-product-page-active #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.rms-product-page-active .site-content {
    padding-top: 0 !important;
}

/* ---- Main Container ---- */
.rms-product-page {
    font-family: var(--rms-font);
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 40px 60px;
    color: var(--rms-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Breadcrumb ---- */
.rms-breadcrumb {
    font-size: 13px;
    color: var(--rms-text-muted);
    margin-bottom: 20px;
    padding: 10px 0;
}

.rms-breadcrumb a {
    color: var(--rms-text-muted);
    text-decoration: none;
    transition: color var(--rms-transition);
}

.rms-breadcrumb a:hover {
    color: var(--rms-primary);
}

.rms-breadcrumb span {
    margin: 0 6px;
}

.rms-breadcrumb .current {
    color: var(--rms-text-secondary);
}

/* ---- Product Main Layout ---- */
.rms-product-main {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

/* ---- Gallery ---- */
.rms-product-gallery {
    position: sticky;
    top: 20px;
}

.rms-gallery-main {
    position: relative;
    border: 1px solid var(--rms-border-light);
    border-radius: var(--rms-radius-lg);
    overflow: hidden;
    background: #fff;
    margin-bottom: 16px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rms-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.rms-gallery-main:hover img {
    transform: scale(1.03);
}

.rms-zoom-trigger {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.rms-zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity var(--rms-transition);
    box-shadow: var(--rms-shadow);
}

.rms-gallery-main:hover .rms-zoom-icon {
    opacity: 1;
}

/* Thumbnails */
.rms-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rms-thumb {
    width: 85px;
    height: 85px;
    border: 2px solid var(--rms-border-light);
    border-radius: var(--rms-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--rms-transition), box-shadow var(--rms-transition);
    background: #fff;
}

.rms-thumb:hover {
    border-color: var(--rms-border);
}

.rms-thumb.active {
    border-color: var(--rms-primary);
    box-shadow: 0 0 0 1px var(--rms-primary);
}

.rms-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Product Info ---- */
.rms-product-info {
    padding-top: 0;
}

.rms-product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 28px;
    color: var(--rms-text);
}

/* ---- Option Groups ---- */
.rms-option-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rms-border-light);
}

.rms-option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rms-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rms-option-label .required {
    color: var(--rms-error);
}

.rms-option-label span:not(.required) {
    font-weight: 400;
    color: var(--rms-text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

/* ---- Color Swatches ---- */
.rms-color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rms-color-swatch {
    width: 56px;
    height: 56px;
    border-radius: var(--rms-radius);
    cursor: pointer;
    position: relative;
    border: 3px solid var(--rms-border);
    transition: border-color var(--rms-transition), transform var(--rms-transition), box-shadow var(--rms-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rms-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rms-color-swatch.active {
    border-color: var(--rms-text);
    box-shadow: 0 0 0 2px var(--rms-text);
    transform: scale(1.05);
}

.rms-color-swatch.is-white {
    border-color: #ccc;
}

.rms-color-swatch.is-white.active {
    border-color: var(--rms-text);
}

.rms-check-icon {
    width: 22px;
    height: 22px;
    color: #666;
    display: none;
}

.rms-color-swatch.active .rms-check-icon {
    display: block;
}

.rms-color-swatch.is-white.active .rms-check-icon {
    color: #888;
}

.rms-color-swatch:not(.is-white).active .rms-check-icon {
    color: #fff;
}

.rms-color-cancel {
    background: none;
    border: none;
    color: var(--rms-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 6px 0;
    margin-top: 4px;
    transition: color var(--rms-transition);
}

.rms-color-cancel:hover {
    color: var(--rms-text);
}

/* ---- Selects & Inputs ---- */
.rms-select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 15px;
    font-family: var(--rms-font);
    border: 2px solid var(--rms-border);
    border-radius: var(--rms-radius);
    background: #fff;
    color: var(--rms-text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color var(--rms-transition), box-shadow var(--rms-transition);
}

.rms-select:hover {
    border-color: #aaa;
}

.rms-select:focus {
    outline: none;
    border-color: var(--rms-primary);
    box-shadow: 0 0 0 3px rgba(239, 62, 67, 0.12);
}

.rms-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--rms-font);
    border: 2px solid var(--rms-border);
    border-radius: var(--rms-radius);
    color: var(--rms-text);
    transition: border-color var(--rms-transition), box-shadow var(--rms-transition);
    box-sizing: border-box;
}

.rms-input:focus {
    outline: none;
    border-color: var(--rms-primary);
    box-shadow: 0 0 0 3px rgba(239, 62, 67, 0.12);
}

/* Dimensions row */
.rms-dimensions-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.rms-dim-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--rms-text-secondary);
    margin-bottom: 6px;
}

/* ---- Info Box ---- */
.rms-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--rms-bg-info);
    border-left: 4px solid var(--rms-info-border);
    border-radius: 0 var(--rms-radius) var(--rms-radius) 0;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rms-text);
}

.rms-info-box svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--rms-info-border);
}

/* ---- Price Section ---- */
.rms-price-section {
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--rms-border-light);
    border-bottom: 1px solid var(--rms-border-light);
}

.rms-price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.rms-price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--rms-price-color);
    line-height: 1;
}

.rms-price-amount .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.rms-price-amount del {
    font-size: 22px;
    color: var(--rms-text-muted);
    font-weight: 400;
}

.rms-price-amount ins {
    text-decoration: none;
}

.rms-price-label {
    font-size: 13px;
    color: var(--rms-text-muted);
    font-weight: 500;
    display: block;
    margin-top: 6px;
}

.rms-price-placeholder {
    font-size: 16px;
    font-weight: 500;
    color: var(--rms-text-muted);
    font-style: italic;
}

/* Price update animation */
.rms-price-updating {
    animation: rmsPriceFlash 0.4s ease;
}

@keyframes rmsPriceFlash {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---- Add to Cart Section ---- */
.rms-add-to-cart-section {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Quantity Selector */
.rms-quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--rms-border);
    border-radius: var(--rms-radius);
    overflow: hidden;
    background: #fff;
    height: 54px;
}

.rms-qty-btn {
    width: 44px;
    height: 100%;
    border: none;
    background: var(--rms-bg-light);
    font-size: 20px;
    font-weight: 500;
    color: var(--rms-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--rms-transition);
    user-select: none;
}

.rms-qty-btn:hover {
    background: #e8e8e8;
}

.rms-qty-btn:active {
    transform: scale(0.95);
}

.rms-qty-input {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 2px solid var(--rms-border);
    border-right: 2px solid var(--rms-border);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--rms-font);
    color: var(--rms-text);
    -moz-appearance: textfield;
    background: #fff;
}

.rms-qty-input::-webkit-outer-spin-button,
.rms-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
.rms-btn {
    height: 54px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--rms-font);
    border-radius: var(--rms-radius);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--rms-transition);
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rms-btn-primary {
    background: var(--rms-primary);
    color: #fff;
    flex: 1;
    min-width: 200px;
}

.rms-btn-primary:hover {
    background: var(--rms-primary-dark);
    box-shadow: 0 4px 16px rgba(239, 62, 67, 0.35);
    transform: translateY(-1px);
}

.rms-btn-primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* ---- Inquiry Section ---- */
.rms-inquiry-section {
    margin-bottom: 24px;
}

.rms-inquiry-toggle {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--rms-font);
    border-radius: var(--rms-radius);
    border: 2px solid var(--rms-border);
    background: #fff;
    color: var(--rms-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--rms-transition);
}

.rms-inquiry-toggle:hover {
    border-color: var(--rms-primary);
    color: var(--rms-primary);
    background: var(--rms-primary-light);
}

.rms-inquiry-toggle svg {
    width: 18px;
    height: 18px;
}

.rms-inquiry-form {
    display: none;
    margin-top: 16px;
    padding: 24px;
    background: var(--rms-bg-light);
    border-radius: var(--rms-radius-lg);
    border: 1px solid var(--rms-border-light);
}

.rms-inquiry-form.open {
    display: block;
    animation: rmsSlideDown 0.3s ease;
}

@keyframes rmsSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rms-inquiry-form .rms-form-row {
    margin-bottom: 14px;
}

.rms-inquiry-form .rms-form-row:last-of-type {
    margin-bottom: 0;
}

.rms-inquiry-form .rms-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rms-text);
    margin-bottom: 5px;
}

.rms-inquiry-form input,
.rms-inquiry-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--rms-font);
    border: 2px solid var(--rms-border);
    border-radius: var(--rms-radius);
    color: var(--rms-text);
    transition: border-color var(--rms-transition), box-shadow var(--rms-transition);
    box-sizing: border-box;
    background: #fff;
}

.rms-inquiry-form input:focus,
.rms-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--rms-primary);
    box-shadow: 0 0 0 3px rgba(239, 62, 67, 0.12);
}

.rms-inquiry-form textarea {
    resize: vertical;
    min-height: 80px;
}

.rms-inquiry-submit {
    width: 100%;
    height: 48px;
    margin-top: 14px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--rms-font);
    border-radius: var(--rms-radius);
    border: none;
    background: var(--rms-text);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--rms-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rms-inquiry-submit:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rms-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rms-inquiry-note {
    text-align: center;
    font-size: 12px;
    color: var(--rms-text-muted);
    margin-top: 10px;
}

.rms-inquiry-success {
    text-align: center;
    padding: 20px;
    color: var(--rms-success);
    font-weight: 600;
    font-size: 15px;
}

.rms-btn-outline {
    background: transparent;
    color: var(--rms-primary);
    border: 2px solid var(--rms-primary);
    padding: 8px 20px;
    font-size: 13px;
    height: auto;
    text-transform: none;
    letter-spacing: 0;
}

.rms-btn-outline:hover {
    background: var(--rms-primary);
    color: #fff;
}

.rms-spinner {
    width: 18px;
    height: 18px;
    animation: rmsSpin 1s linear infinite;
}

@keyframes rmsSpin {
    to { transform: rotate(360deg); }
}

/* ---- Product Meta ---- */
.rms-product-meta {
    font-size: 13px;
    color: var(--rms-text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--rms-border-light);
}

.rms-meta-item {
    margin-bottom: 4px;
}

.rms-meta-item strong {
    color: var(--rms-text-secondary);
    font-weight: 600;
}

.rms-meta-item a {
    color: var(--rms-primary);
    text-decoration: none;
}

.rms-meta-item a:hover {
    text-decoration: underline;
}

/* ============================================
   Tabs Section
   ============================================ */
.rms-product-tabs {
    margin-bottom: 50px;
}

.rms-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--rms-border-light);
    gap: 0;
}

.rms-tab-btn {
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--rms-font);
    color: var(--rms-text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--rms-transition);
    white-space: nowrap;
}

.rms-tab-btn:hover {
    color: var(--rms-text);
}

.rms-tab-btn.active {
    color: var(--rms-primary);
    border-bottom-color: var(--rms-primary);
    font-weight: 600;
}

.rms-tab-panel {
    display: none;
    padding: 30px 0;
    animation: rmsTabFadeIn 0.3s ease;
}

.rms-tab-panel.active {
    display: block;
}

@keyframes rmsTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rms-tab-content-inner {
    font-size: 15px;
    line-height: 1.8;
    color: var(--rms-text-secondary);
    max-width: 900px;
}

.rms-tab-content-inner p {
    margin-bottom: 16px;
}

.rms-tab-content-inner a {
    color: var(--rms-primary);
}

/* Attributes Table */
.rms-attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.rms-attributes-table tr {
    border-bottom: 1px solid var(--rms-border-light);
}

.rms-attributes-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--rms-text);
    width: 220px;
    background: var(--rms-bg-light);
    vertical-align: top;
}

.rms-attributes-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--rms-text-secondary);
}

/* ============================================
   Related Products
   ============================================ */
.rms-related-products {
    margin-bottom: 60px;
}

.rms-related-products h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--rms-text);
}

.rms-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rms-related-card {
    border: 1px solid var(--rms-border-light);
    border-radius: var(--rms-radius-lg);
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--rms-transition), transform var(--rms-transition);
    text-align: center;
    padding-bottom: 16px;
}

.rms-related-card:hover {
    box-shadow: var(--rms-shadow-lg);
    transform: translateY(-3px);
}

.rms-related-card a {
    text-decoration: none;
    color: inherit;
}

.rms-related-image {
    padding: 16px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rms-related-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.rms-related-info {
    padding: 0 16px 12px;
}

.rms-related-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.rms-related-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--rms-price-color);
}

/* ============================================
   Toast Notification
   ============================================ */
.rms-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--rms-radius-lg);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--rms-font);
    box-shadow: var(--rms-shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 420px;
}

.rms-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.rms-toast.success {
    background: var(--rms-success);
}

.rms-toast.error {
    background: var(--rms-error);
}

.rms-toast a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 4px;
}

/* ============================================
   Lightbox Overlay
   ============================================ */
.rms-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.rms-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rms-lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--rms-radius);
}

.rms-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--rms-transition);
}

.rms-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .rms-product-page {
        max-width: 100%;
        padding: 20px 30px 50px;
    }

    .rms-product-main {
        gap: 40px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .rms-product-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .rms-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rms-product-title {
        font-size: 24px;
    }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
    .rms-product-page {
        padding: 16px 16px 40px;
    }

    .rms-product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rms-product-gallery {
        position: static;
    }

    .rms-gallery-main {
        aspect-ratio: 4 / 3;
        border-radius: var(--rms-radius);
    }

    .rms-thumb {
        width: 70px;
        height: 70px;
    }

    .rms-product-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .rms-color-swatch {
        width: 50px;
        height: 50px;
    }

    .rms-add-to-cart-section {
        flex-direction: column;
    }

    .rms-quantity-selector {
        width: 150px;
    }

    .rms-btn-primary {
        width: 100%;
        min-width: unset;
    }

    .rms-price-amount {
        font-size: 30px;
    }

    .rms-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rms-tab-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    .rms-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rms-related-image {
        height: 140px;
    }

    .rms-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .rms-inquiry-form {
        padding: 16px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .rms-product-page {
        padding: 12px 12px 30px;
    }

    .rms-breadcrumb {
        font-size: 12px;
    }

    .rms-gallery-thumbs {
        gap: 6px;
    }

    .rms-thumb {
        width: 60px;
        height: 60px;
    }

    .rms-color-swatch {
        width: 46px;
        height: 46px;
    }

    .rms-dimensions-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rms-price-amount {
        font-size: 28px;
    }

    .rms-btn {
        font-size: 14px;
        height: 50px;
    }

    .rms-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .rms-related-image {
        height: 120px;
        padding: 10px;
    }

    .rms-related-info h3 {
        font-size: 12px;
    }

    .rms-related-price {
        font-size: 15px;
    }
}

/* ============================================
   WooCommerce Review Overrides
   ============================================ */
.rms-tab-content-inner .woocommerce-Reviews {
    font-family: var(--rms-font);
}

.rms-tab-content-inner .woocommerce-Reviews .comment-reply-title {
    font-size: 18px;
    font-weight: 600;
}

.rms-tab-content-inner .woocommerce-noreviews {
    padding: 20px;
    background: var(--rms-bg-light);
    border-radius: var(--rms-radius);
    color: var(--rms-text-muted);
}

/* Hide any duplicate WC elements */
.rms-product-page + .related.products,
.rms-product-page + .up-sells,
.rms-product-page ~ .woocommerce-tabs,
.single-product .woocommerce-breadcrumb,
body.rms-product-page-active .woocommerce-breadcrumb,
body.rms-product-page-active nav.woocommerce-breadcrumb,
body.rms-product-page-active .storefront-breadcrumb,
body.rms-product-page-active .yoast-breadcrumb,
body.rms-product-page-active .rank-math-breadcrumb,
body.rms-product-page-active .woo-breadcrumb,
body.rms-product-page-active .product_meta,
body.rms-product-page-active .summary > .price,
body.rms-product-page-active .woocommerce-product-gallery,
body.rms-product-page-active .product_title,
body.rms-product-page-active .entry-summary > .price,
body.rms-product-page-active .entry-summary > h1,
body.rms-product-page-active .summary.entry-summary,
body.rms-product-page-active div.product > .woocommerce-breadcrumb,
body.rms-product-page-active .ast-woocommerce-container > .woocommerce-breadcrumb {
    display: none !important;
}

/* Hide WC default product elements that might appear outside our template */
body.rms-product-page-active div.product > .woocommerce-product-gallery,
body.rms-product-page-active div.product > .summary:not(.rms-product-info),
body.rms-product-page-active div.product > .woocommerce-tabs,
body.rms-product-page-active div.product > .related,
body.rms-product-page-active div.product > .up-sells {
    display: none !important;
}

/* Ensure our product page is full width and no WC styles interfere */
body.rms-product-page-active div.product {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.rms-product-page-active .ast-woocommerce-container {
    max-width: 100% !important;
    padding: 0 !important;
}
