/* ==========================================================================
   CARDONGY - Single Product v3.0
   Clean Rebuild + Perfect RTL
   ========================================================================== */

/* Variables */
:root {
    --cg-gold:      #d4a537;
    --cg-gold-d:    #b8862c;
    --cg-gold-l:    #f5d585;
    --cg-gold-grad: linear-gradient(135deg, #d4a537 0%, #b8862c 100%);
    --cg-navy:      #0a1929;
    --cg-navy-l:    #0f2138;
    --cg-white:     #ffffff;
    --cg-text:      #1a1a1a;
    --cg-muted:     #6b7280;
    --cg-light:     #999999;
    --cg-border:    #e8e8e8;
    --cg-bg:        #f5f7fa;
    --cg-bg-cream:  #fff9ec;
    --cg-success:   #10b981;
    --cg-danger:    #ef4444;
    --cg-warning:   #f59e0b;
    --cg-radius:    12px;
    --cg-radius-sm: 8px;
    --cg-shadow:    0 4px 20px rgba(0,0,0,0.08);
    --cg-shadow-h:  0 8px 30px rgba(0,0,0,0.12);
    --cg-shadow-g:  0 6px 20px rgba(212, 165, 55, 0.35);
}

/* ============ Body Background ============ */
body.single-product {
    background: var(--cg-bg) !important;
}

body.single-product #primary,
body.single-product #content,
body.single-product .site-content,
body.single-product .site-main,
body.single-product #main {
    background: var(--cg-bg) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.single-product #secondary,
body.single-product .sidebar,
body.single-product .widget-area,
body.single-product .shop-sidebar {
    display: none !important;
}

/* ============ Container ============ */
.cg-product-page {
    background: var(--cg-bg);
    min-height: 100vh;
    padding: 30px 20px 80px;
    font-family: 'Poppins', 'Cairo', sans-serif;
    color: var(--cg-text);
    box-sizing: border-box;
}

.cg-product-page * {
    box-sizing: border-box;
}

.cg-product-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============ Breadcrumb ============ */
.cg-breadcrumb-bar {
    background: var(--cg-bg-cream);
    padding: 15px 25px;
    border-radius: var(--cg-radius);
    margin-bottom: 25px;
    border: 1px solid rgba(212, 165, 55, 0.2);
}

.cg-breadcrumb-bar .woocommerce-breadcrumb {
    color: var(--cg-muted);
    font-size: 14px;
    margin: 0;
}

.cg-breadcrumb-bar .woocommerce-breadcrumb a {
    color: var(--cg-gold-d);
    text-decoration: none;
    font-weight: 500;
}

.cg-breadcrumb-bar .woocommerce-breadcrumb a:hover {
    color: var(--cg-gold);
}

/* ============ Main Layout ============ */
.cg-product-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--cg-white);
    padding: 30px;
    border-radius: var(--cg-radius);
    box-shadow: var(--cg-shadow);
    margin-bottom: 30px;
}

/* ============ Gallery ============ */
.cg-gallery {
    position: relative;
    min-width: 0;
}

.cg-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.cg-discount-circle {
    width: 80px;
    height: 80px;
    background: var(--cg-gold-grad);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(212, 165, 55, 0.5);
    pointer-events: auto;
    animation: pulseCircle 2s ease-in-out infinite;
}

.cg-discount-circle strong {
    font-size: 20px;
    line-height: 1;
}

.cg-discount-circle small {
    font-size: 10px;
    margin-top: 3px;
    letter-spacing: 1px;
}

@keyframes pulseCircle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.cg-badges-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    pointer-events: auto;
}

.cg-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cg-badge-new      { background: linear-gradient(135deg, #10b981, #059669); }
.cg-badge-featured { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cg-badge-hot      { background: linear-gradient(135deg, #ef4444, #dc2626); }
.cg-badge-limited  { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Main image */
.cg-main-image {
    position: relative;
    background: var(--cg-bg);
    border-radius: var(--cg-radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cg-border);
}

.cg-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.cg-main-image:hover img {
    transform: scale(1.05);
}

.cg-lightbox-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s;
    z-index: 5;
}

.cg-lightbox-btn:hover {
    background: var(--cg-gold);
    transform: scale(1.1);
}

/* Thumbs */
.cg-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.cg-thumb {
    aspect-ratio: 1;
    border: 2px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--cg-bg);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cg-thumb.active {
    border-color: var(--cg-gold);
    box-shadow: 0 4px 12px rgba(212, 165, 55, 0.3);
}

/* Share Box */
.cg-share-box {
    margin-top: 20px;
    padding: 15px;
    background: var(--cg-bg);
    border-radius: var(--cg-radius-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cg-share-label {
    font-weight: 600;
    color: var(--cg-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cg-share-label i {
    color: var(--cg-gold);
}

.cg-share-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cg-share-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.cg-fb  { background: #1877f2; }
.cg-tw  { background: #1da1f2; }
.cg-wa  { background: #25d366; }
.cg-tg  { background: #0088cc; }
.cg-copy { background: var(--cg-navy); }

.cg-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ============ Details ============ */
.cg-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* Tags */
.cg-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cg-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cg-tag-brand {
    background: rgba(212, 165, 55, 0.12);
    color: var(--cg-gold-d);
    border: 1px solid rgba(212, 165, 55, 0.3);
}

.cg-tag-brand:hover {
    background: var(--cg-gold);
    color: white;
}

.cg-tag-tour {
    background: rgba(10, 25, 41, 0.08);
    color: var(--cg-navy);
    border: 1px solid rgba(10, 25, 41, 0.2);
}

.cg-tag-tour:hover {
    background: var(--cg-navy);
    color: white;
}

/* Title */
.cg-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--cg-text);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Rating */
.cg-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--cg-muted);
}

.cg-stars {
    display: flex;
    gap: 2px;
}

.cg-stars i {
    color: #ddd;
    font-size: 15px;
}

.cg-stars i.active {
    color: var(--cg-gold);
}

.cg-rating-count,
.cg-sku {
    color: var(--cg-muted);
    font-weight: 500;
    font-size: 13px;
}

.cg-sku strong {
    color: var(--cg-text);
}

/* ============ Price Box ============ */
.cg-price-box {
    background: linear-gradient(135deg, #fff9ec 0%, #fff5db 100%);
    border: 2px solid rgba(212, 165, 55, 0.25);
    border-radius: var(--cg-radius);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cg-price-box.has-sale {
    background: linear-gradient(135deg, #fff9ec 0%, #ffede0 100%);
    border-color: var(--cg-gold);
    box-shadow: 0 4px 20px rgba(212, 165, 55, 0.15);
}

.cg-sale-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--cg-gold-grad);
    color: white;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    box-shadow: var(--cg-shadow-g);
}

.cg-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.cg-price-old {
    font-size: 20px;
    color: var(--cg-muted);
    text-decoration: line-through;
    text-decoration-color: var(--cg-danger);
    text-decoration-thickness: 2px;
    font-weight: 500;
    opacity: 0.7;
}

.cg-price-new,
.cg-price-single {
    font-size: 38px;
    font-weight: 900;
    color: var(--cg-navy);
    letter-spacing: -1px;
    line-height: 1;
}

.cg-price-new {
    background: var(--cg-gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Savings */
.cg-savings {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 18px;
    border-radius: var(--cg-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px dashed var(--cg-gold);
    margin-top: 8px;
}

.cg-savings-icon {
    width: 40px;
    height: 40px;
    background: var(--cg-gold-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.cg-savings-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.cg-savings-text strong {
    color: var(--cg-navy);
    font-size: 14px;
    font-weight: 800;
}

.cg-savings-text span {
    color: var(--cg-gold-d);
    font-weight: 700;
    font-size: 12px;
}

/* Countdown */
.cg-countdown {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--cg-navy), var(--cg-navy-l));
    border-radius: var(--cg-radius-sm);
    text-align: center;
    color: white;
}

.cg-cd-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--cg-gold);
}

.cg-cd-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.cg-cd-box {
    background: white;
    color: var(--cg-navy);
    padding: 10px 8px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cg-cd-box span {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: var(--cg-gold-d);
}

.cg-cd-box small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    color: var(--cg-muted);
    font-weight: 600;
}

.cg-cd-sep {
    color: var(--cg-gold);
    font-size: 20px;
    font-weight: 900;
}

/* Urgency */
.cg-urgency {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--cg-radius-sm);
    padding: 12px 16px;
}

.cg-urg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #78350f;
    font-size: 13px;
    font-weight: 600;
}

.cg-urg-item i {
    color: #d97706;
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.cg-urg-item.urgent {
    color: #991b1b;
    font-weight: 700;
}

.cg-urg-item.urgent i {
    color: #dc2626;
}

/* Stock Progress */
.cg-stock-progress {
    background: white;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    padding: 12px 16px;
}

.cg-sp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.cg-sp-fast {
    color: var(--cg-danger);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cg-sp-left {
    color: var(--cg-text);
    font-weight: 700;
}

.cg-sp-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
}

.cg-sp-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
    border-radius: 20px;
    transition: width 1s ease;
}

/* Short Description */
.cg-short-desc {
    color: var(--cg-muted);
    line-height: 1.7;
    font-size: 15px;
    padding: 15px;
    background: var(--cg-bg);
    border-inline-start: 4px solid var(--cg-gold);
    border-radius: var(--cg-radius-sm);
}

.cg-short-desc p:last-child {
    margin-bottom: 0;
}

/* Stock Badge */
.cg-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

.cg-stock-badge.in {
    background: rgba(16, 185, 129, 0.12);
    color: var(--cg-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cg-stock-badge.out {
    background: rgba(239, 68, 68, 0.12);
    color: var(--cg-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Actions Box */
.cg-actions-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--cg-bg), white);
    border-radius: var(--cg-radius);
    border: 1px solid var(--cg-border);
}

.cardongy-cart-form {
    margin: 0 !important;
}

.cg-qty-cart {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: end;
}

.cg-qty-wrap label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--cg-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cg-qty-selector {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    overflow: hidden;
    direction: ltr;
}

.cg-qty-btn {
    width: 42px;
    height: 52px;
    background: transparent;
    border: none;
    color: var(--cg-text);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-qty-btn:hover {
    background: var(--cg-gold);
    color: white;
}

.cg-qty-selector input.qty,
.cg-qty-selector input[type="number"] {
    width: 55px !important;
    height: 52px !important;
    border: none !important;
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--cg-text) !important;
    background: transparent !important;
    outline: none !important;
    -moz-appearance: textfield;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

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

.cg-btn-add-cart {
    height: 52px;
    background: var(--cg-gold-grad);
    color: white;
    border: none;
    border-radius: var(--cg-radius-sm);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: var(--cg-shadow-g);
    text-transform: uppercase;
    font-family: inherit;
}

.cg-btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 55, 0.5);
}

.cg-secondary-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.cg-btn-buy-now {
    height: 48px;
    background: var(--cg-navy);
    color: white;
    border: 2px solid var(--cg-navy);
    border-radius: var(--cg-radius-sm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
}

.cg-btn-buy-now:hover {
    background: var(--cg-gold);
    border-color: var(--cg-gold);
    color: white;
}

.cg-btn-buy-now i {
    color: var(--cg-gold);
    transition: color 0.3s;
}

.cg-btn-buy-now:hover i {
    color: white;
}

.cg-btn-wishlist {
    height: 48px;
    padding: 0 20px;
    background: white;
    color: var(--cg-text);
    border: 2px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.cg-btn-wishlist:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.cg-btn-wishlist.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Unavailable */
.cg-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 2px dashed var(--cg-danger);
    color: var(--cg-danger);
    border-radius: var(--cg-radius);
    font-weight: 700;
    font-size: 15px;
}

/* Meta Box */
.cg-meta-box {
    padding: 15px;
    background: white;
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cg-meta-row {
    font-size: 13px;
    color: var(--cg-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cg-meta-row strong {
    color: var(--cg-text);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cg-meta-row strong i {
    color: var(--cg-gold);
}

.cg-meta-row a {
    color: var(--cg-gold-d);
    text-decoration: none;
    font-weight: 600;
}

.cg-meta-row a:hover {
    color: var(--cg-gold);
    text-decoration: underline;
}

/* ============ Tabs Section ============ */
.cg-tabs-section {
    background: white;
    border-radius: var(--cg-radius);
    box-shadow: var(--cg-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.cg-tabs-nav {
    display: flex;
    background: var(--cg-navy);
    overflow-x: auto;
}

.cg-tabs-nav::-webkit-scrollbar {
    display: none;
}

.cg-tab-btn {
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.cg-tab-btn:hover {
    color: var(--cg-gold);
    background: rgba(255,255,255,0.05);
}

.cg-tab-btn.active {
    color: var(--cg-gold);
    background: rgba(212, 165, 55, 0.1);
    border-bottom-color: var(--cg-gold);
}

.cg-tab-count {
    background: var(--cg-gold);
    color: var(--cg-navy);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.cg-tabs-content {
    padding: 30px;
}

.cg-tab-panel {
    display: none;
    animation: fadeIn 0.4s;
    line-height: 1.7;
    color: var(--cg-text);
}

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

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

.cg-tab-panel h2,
.cg-tab-panel h3 {
    color: var(--cg-navy);
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Specs Table */
.cg-specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--cg-radius-sm);
    overflow: hidden;
}

.cg-specs-table tr {
    border-bottom: 1px solid var(--cg-border);
}

.cg-specs-table tr:last-child {
    border-bottom: none;
}

.cg-specs-table tr:nth-child(even) {
    background: var(--cg-bg);
}

.cg-specs-table th,
.cg-specs-table td {
    padding: 14px 20px;
    font-size: 14px;
}

.cg-specs-table th {
    background: var(--cg-navy);
    color: white;
    font-weight: 700;
    width: 40%;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: start;
}

.cg-specs-table td {
    color: var(--cg-text);
    font-weight: 500;
    text-align: start;
}

/* Shipping Grid */
.cg-shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cg-ship-block {
    padding: 20px;
    background: var(--cg-bg);
    border-radius: var(--cg-radius-sm);
    border-inline-start: 4px solid var(--cg-gold);
}

.cg-ship-block h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: var(--cg-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cg-ship-block h3 i {
    color: var(--cg-gold);
}

.cg-ship-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-ship-block ul li {
    padding: 8px 0;
    color: var(--cg-text);
    font-size: 14px;
    line-height: 1.6;
}

.cg-ship-block p {
    color: var(--cg-text);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Related & Recently Viewed */
.cg-related-section,
.cg-recently-section {
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--cg-radius);
    box-shadow: var(--cg-shadow);
}

.cg-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--cg-navy);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--cg-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cg-section-heading i {
    color: var(--cg-gold);
}

.cg-recently-grid,
.cg-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.cg-related-section .product-card,
.cg-recently-section .product-card { height:100%; overflow:hidden; }
.cg-related-section .product-card .img-wrap,
.cg-recently-section .product-card .img-wrap { height:260px; background:#f7f8fa; }
.cg-related-section .product-card .img-wrap img,
.cg-recently-section .product-card .img-wrap img { object-fit:contain!important; object-position:center; }
@media(max-width:900px){.cg-recently-grid,.cg-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.cg-related-section,.cg-recently-section{padding:18px}.cg-recently-grid,.cg-related-grid{gap:12px}.cg-related-section .product-card .img-wrap,.cg-recently-section .product-card .img-wrap{height:210px}}

/* Lightbox Overlay */
.cg-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 40px;
    animation: fadeIn 0.3s;
}

.cg-lightbox-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.cg-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-lb-close:hover {
    background: var(--cg-gold);
    border-color: var(--cg-gold);
}

/* ==========================================================================
   🌍 RTL FIXES - Perfect Arabic Support
   ========================================================================== */

[dir="rtl"] .cg-product-page {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Details: force right alignment */
[dir="rtl"] .cg-details {
    text-align: right;
}

[dir="rtl"] .cg-title,
[dir="rtl"] .cg-tags-row,
[dir="rtl"] .cg-rating-row {
    text-align: right;
}

/* Prices always LTR */
[dir="rtl"] .cg-prices,
[dir="rtl"] .cg-price-old,
[dir="rtl"] .cg-price-new,
[dir="rtl"] .cg-price-single {
    direction: ltr;
    unicode-bidi: embed;
}

/* Countdown always LTR */
[dir="rtl"] .cg-cd-boxes,
[dir="rtl"] .cg-countdown {
    direction: ltr;
}

[dir="rtl"] .cg-cd-label {
    direction: rtl;
    flex-direction: row-reverse;
    justify-content: center;
}

/* Share Box RTL */
[dir="rtl"] .cg-share-box {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .cg-share-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-share-icons {
    flex-direction: row;
}

/* Meta Box RTL */
[dir="rtl"] .cg-meta-box {
    text-align: right;
}

[dir="rtl"] .cg-meta-row {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .cg-meta-row strong {
    flex-direction: row-reverse;
}

/* Tabs RTL */
[dir="rtl"] .cg-tabs-nav {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .cg-tab-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-tabs-content,
[dir="rtl"] .cg-tab-panel {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .cg-tab-panel p,
[dir="rtl"] .cg-tab-panel h2,
[dir="rtl"] .cg-tab-panel h3,
[dir="rtl"] .cg-tab-panel h4,
[dir="rtl"] .cg-tab-panel ul,
[dir="rtl"] .cg-tab-panel ol,
[dir="rtl"] .cg-tab-panel li {
    text-align: right;
    direction: rtl;
}

/* Specs Table RTL */
[dir="rtl"] .cg-specs-table th,
[dir="rtl"] .cg-specs-table td {
    text-align: right;
}

/* Shipping Blocks RTL */
[dir="rtl"] .cg-shipping-grid {
    direction: rtl;
}

[dir="rtl"] .cg-ship-block {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .cg-ship-block h3 {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .cg-ship-block ul li,
[dir="rtl"] .cg-ship-block p {
    text-align: right;
    direction: rtl;
}

/* Reviews RTL */
[dir="rtl"] #reviews,
[dir="rtl"] .comment-form,
[dir="rtl"] .comment-respond,
[dir="rtl"] .commentlist,
[dir="rtl"] .commentlist li {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .comment-form label,
[dir="rtl"] .comment-reply-title {
    text-align: right;
    display: block;
}

[dir="rtl"] .comment-form input[type="text"],
[dir="rtl"] .comment-form input[type="email"],
[dir="rtl"] .comment-form textarea {
    text-align: right;
    direction: rtl;
}

/* Section headings RTL */
[dir="rtl"] .cg-section-heading {
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: right;
}

/* Related Products RTL */
[dir="rtl"] .cg-related-section,
[dir="rtl"] .cg-recently-section {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .related.products,
[dir="rtl"] .related.products h2 {
    text-align: right;
    direction: rtl;
}

/* Buttons RTL */
[dir="rtl"] .cg-btn-add-cart,
[dir="rtl"] .cg-btn-buy-now,
[dir="rtl"] .cg-btn-wishlist {
    flex-direction: row-reverse;
}

/* Stock RTL */
[dir="rtl"] .cg-stock-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-urg-item {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .cg-sale-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-sp-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-sp-fast {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-savings {
    flex-direction: row-reverse;
}

[dir="rtl"] .cg-stars {
    direction: ltr;
}

/* Rating row RTL */
[dir="rtl"] .cg-rating-row {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Tag row RTL */
[dir="rtl"] .cg-tags-row {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .cg-tag {
    flex-direction: row-reverse;
}

/* Tab count RTL */
[dir="rtl"] .cg-tab-count {
    direction: ltr;
}

/* WooCommerce prices always LTR */
[dir="rtl"] .price,
[dir="rtl"] .amount,
[dir="rtl"] .woocommerce-Price-amount {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .cg-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .cg-product-page {
        padding: 20px 12px 60px;
    }

    .cg-title {
        font-size: 22px;
    }

    .cg-price-new,
    .cg-price-single {
        font-size: 30px;
    }

    .cg-price-old {
        font-size: 16px;
    }

    .cg-discount-circle {
        width: 65px;
        height: 65px;
    }

    .cg-discount-circle strong {
        font-size: 16px;
    }

    .cg-cd-box {
        min-width: 50px;
        padding: 8px 5px;
    }

    .cg-cd-box span {
        font-size: 18px;
    }

    .cg-tab-btn {
        padding: 14px 16px;
        font-size: 12px;
    }

    .cg-tabs-content {
        padding: 20px;
    }

    .cg-section-heading {
        font-size: 18px;
    }

    .cg-qty-cart {
        grid-template-columns: 1fr;
    }

    .cg-secondary-actions {
        grid-template-columns: 1fr;
    }

    .cg-share-box {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cg-title {
        font-size: 20px;
    }

    .cg-price-new,
    .cg-price-single {
        font-size: 26px;
    }

    .cg-cd-boxes {
        gap: 4px;
    }

    .cg-cd-box {
        min-width: 42px;
        padding: 6px 3px;
    }

    .cg-cd-box span {
        font-size: 16px;
    }

    .cg-cd-box small {
        font-size: 9px;
    }

    .cg-tab-btn {
        padding: 12px 10px;
        font-size: 11px;
    }

    .cg-tab-btn i {
        display: none;
    }
}
/* ==========================================================================
   🌍 RTL FIXES - Round 2 (Final Fixes)
   ========================================================================== */

/* ✅ Tabs Nav - في العربية اجعلها من اليمين */
[dir="rtl"] .cg-tabs-nav {
    justify-content: flex-end !important;
}

/* ✅ Share Box - في العربية اجعل النص أولاً ثم الأيقونات */
[dir="rtl"] .cg-share-box {
    justify-content: flex-start !important;
    flex-direction: row !important;
}

[dir="rtl"] .cg-share-label {
    order: 1 !important;
    flex-direction: row-reverse !important;
}

[dir="rtl"] .cg-share-icons {
    order: 2 !important;
    flex-direction: row-reverse !important;
}

/* ✅ Urgency Bar - النص من اليمين لليسار */
[dir="rtl"] .cg-urgency {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .cg-urg-item {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .cg-urg-item span {
    text-align: right !important;
    direction: rtl !important;
    flex: 1;
}

/* ✅ Meta Box (بطاقة الفئة) - كامل RTL */
[dir="rtl"] .cg-meta-box {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .cg-meta-row {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    text-align: right !important;
    direction: rtl !important;
    gap: 8px !important;
}

[dir="rtl"] .cg-meta-row strong {
    order: 1 !important;
    flex-direction: row-reverse !important;
}

[dir="rtl"] .cg-meta-row span {
    order: 2 !important;
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .cg-meta-row strong i {
    margin-right: 0 !important;
    margin-left: 4px !important;
}
/* ==========================================================================
   ✅ FINAL FIX - Meta Box (Icon + Label First, Value After)
   ========================================================================== */

[dir="rtl"] .cg-meta-box {
    text-align: right !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

[dir="rtl"] .cg-meta-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    text-align: right !important;
    direction: rtl !important;
    gap: 8px !important;
}

[dir="rtl"] .cg-meta-row strong {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
    order: 0 !important;
}

[dir="rtl"] .cg-meta-row span {
    order: 1 !important;
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .cg-meta-row strong i {
    margin: 0 !important;
    color: var(--cg-gold) !important;
}

/* v1.1.6 - Product gallery mouse zoom (keeps WooCommerce gallery images). */
.cg-image-zoom-area{cursor:zoom-in;isolation:isolate}
.cg-image-zoom-area img{will-change:transform;transition:transform .18s ease,transform-origin .05s linear}
.cg-image-zoom-area.is-zooming img{transition:transform .08s linear;cursor:zoom-in}
.cg-image-zoom-area:focus-visible{outline:3px solid var(--cg-gold);outline-offset:3px}
body.cg-lightbox-open{overflow:hidden}
@media (hover:none),(pointer:coarse){.cg-image-zoom-area img,.cg-image-zoom-area:hover img{transform:none!important}.cg-image-zoom-area{cursor:zoom-in}}
