/* ============================================
   SOFIA MASTERY - PRODUCT DETAIL PAGE
   Modern Clean Design - FORCE ALL STYLES
   ============================================ */

/* ===== PRODUCT PAGE CONTAINER ===== */
.item_info {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 32px 24px !important;
    background: #ffffff !important;
    display: block !important;
}

.item_info .center {
    display: block !important;
    width: 100% !important;
}

/* ===== BREADCRUMB ===== */
.item_info .path_product {
    padding: 0 !important;
    background: transparent !important;
    margin-bottom: 24px !important;
}

.item_info .path_product .infopath p {
    font-size: 13px !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.item_info .path_product img {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.4 !important;
}

/* Hide detail info section */
.item_info .detail_info {
    display: none !important;
}

/* ===== PRODUCT LAYOUT ===== */
.product_layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .product_layout {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* ===== INFO SECTION - FORCE VISIBLE ===== */
.info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

/* ===== BUY SECTION - FORCE VISIBLE ===== */
.buyit {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.itembuy_cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: visible !important;
}

/* Product Title - FORCE VISIBLE */
.name {
    display: block !important;
    visibility: visible !important;
}

.name h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
    margin: 0 0 16px 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Rating - FORCE VISIBLE */
.sales_rate {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Description - FORCE VISIBLE */
.desc_comment {
    display: block !important;
    visibility: visible !important;
    margin-top: 32px !important;
    padding-top: 32px !important;
    border-top: 1px solid #e5e7eb !important;
}

/* Payment logos - FORCE VISIBLE */
.paylogo {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e7eb !important;
}

/* ===== IMAGE GALLERY ===== */
.images_section {
    position: sticky !important;
    top: 100px !important;
}

.gallery_layout {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    gap: 16px !important;
}

@media (max-width: 600px) {
    .gallery_layout {
        grid-template-columns: 1fr !important;
    }
    
    .photos {
        order: 2 !important;
    }
    
    .image {
        order: 1 !important;
    }
}

/* Thumbnails */
.photos {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.photos .c {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

@media (max-width: 600px) {
    .photos,
    .photos .c {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
    }
}

.photos .item_images {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}

.photos .item_images:hover {
    border-color: #d1d5db !important;
}

.photos .item_images.active,
.photos .item_images:first-child {
    border-color: #2563eb !important;
}

/* Main Image */
.image {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f9fafb !important;
}

.image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.image b {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.15s ease !important;
    font-size: 16px !important;
    color: #374151 !important;
}

.image b:hover {
    background: #ffffff !important;
    transform: scale(1.1) !important;
}

#zr, #zoomtout {
    top: auto !important;
    bottom: 16px !important;
}

#zoomtout {
    right: 64px !important;
}

/* ===== PRODUCT INFO ===== */
.info {
    padding: 0 !important;
}

/* Hide save button */
.info .save {
    display: none !important;
}

.spaceinfo {
    display: none !important;
}

/* Store Link */
.by {
    margin-bottom: 8px !important;
}

.by a {
    font-size: 14px !important;
    color: #2563eb !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.by a:hover {
    text-decoration: underline !important;
}

/* Product Title */
.name h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
    margin: 0 0 16px 0 !important;
}

@media (max-width: 768px) {
    .name h2 {
        font-size: 22px !important;
    }
}

/* Rating */
.sales_rate {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.over-star img {
    height: 18px !important;
    width: auto !important;
}

.rateval p {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
}

.reviews_count p {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* ===== BUY SECTION ===== */
.buyit {
    margin-bottom: 32px !important;
}

.itembuy_cart {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.head_cart {
    background: #f3f4f6 !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.head_cart h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.itembuy_cart .line {
    display: none !important;
}

/* Small Item Preview */
.small_item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
}

.smallimg {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
}

.smallimg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.smallname b {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Price */
.itembuy_cart .price {
    padding: 20px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
}

.itembuy_cart .price #titletotal {
    display: block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
}

.itembuy_cart .price #totalprice {
    display: block !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.itembuy_cart .price #after {
    display: inline-block !important;
    font-size: 18px !important;
    color: #9ca3af !important;
    margin-left: 12px !important;
}

.itembuy_cart .price #after del {
    text-decoration: line-through !important;
}

/* Action Button */
.action {
    padding: 20px !important;
    background: #ffffff !important;
}

.action .buy {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.action button,
.action a,
.action input[type="submit"],
.action .buy button {
    width: 100% !important;
    padding: 16px 24px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.action button:hover,
.action a:hover,
.action .buy button:hover {
    background: #1d4ed8 !important;
}

/* Buy Now button - Primary */
.action .buy button#buy {
    background: #111827 !important;
    color: #ffffff !important;
}

.action .buy button#buy:hover {
    background: #1f2937 !important;
}

/* Add to Cart button */
.action .buy button#addcart {
    background: #2563eb !important;
    color: #ffffff !important;
}

.action .buy button#addcart:hover {
    background: #1d4ed8 !important;
}

.action .buy button#addcart img {
    width: 20px !important;
    height: 20px !important;
    filter: brightness(0) invert(1) !important;
}

/* Remove from cart button */
.action .buy button#rmcart {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.action .buy button#rmcart:hover {
    background: #b91c1c !important;
}

/* Download button */
.action .dlink,
.action .download_btn {
    background: #16a34a !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 16px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.action .dlink:hover,
.action .download_btn:hover {
    background: #15803d !important;
}

/* ===== DESCRIPTION & REVIEWS TABS ===== */
.desc_comment {
    margin-top: 32px !important;
    padding-top: 32px !important;
    border-top: 1px solid #e5e7eb !important;
}

.desc_comment h3 {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    padding: 12px 20px !important;
    margin: 0 8px 0 0 !important;
    cursor: pointer !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.15s ease !important;
    background: none !important;
    border-radius: 0 !important;
}

.desc_comment h3:hover {
    color: #374151 !important;
}

.desc_comment h3#descitem {
    color: #111827 !important;
    border-bottom-color: #2563eb !important;
}

/* Hide lines */
.line_greay,
.line_desc,
.line_comments {
    display: none !important;
}

/* Description Content */
.desc_show {
    margin-top: 24px !important;
}

.desc_show h3 {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
}

/* Comments */
.comment_show {
    margin-top: 24px !important;
}

/* Payment Logos */
.paylogo {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e7eb !important;
}

.paylogo img {
    height: 24px !important;
    width: auto !important;
    opacity: 0.5 !important;
    transition: opacity 0.15s ease !important;
}

.paylogo img:hover {
    opacity: 0.8 !important;
}

/* ===== RELATED PRODUCTS ===== */
#seealso {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 48px 24px 24px 24px !important;
}

.spacess {
    height: 16px !important;
}

/* Recently Viewed Slider */
.parent_gellery {
    position: relative !important;
    padding: 0 24px !important;
    margin-bottom: 48px !important;
}

.parent_gellery #right,
.parent_gellery #left {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    z-index: 10 !important;
    padding: 10px !important;
}

.parent_gellery #right {
    right: 8px !important;
}

.parent_gellery #left {
    left: 8px !important;
}

.big_topviewded {
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
}

.topviewed {
    display: flex !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.topviewed .item_li {
    min-width: 220px !important;
    max-width: 220px !important;
    flex-shrink: 0 !important;
}

/* Similar Products Grid */
.parent_items {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 0 24px !important;
    margin-bottom: 48px !important;
}

@media (max-width: 1200px) {
    .parent_items {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .parent_items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .parent_items {
        grid-template-columns: 1fr !important;
    }
}

/* ===== TAGS ===== */
.tags {
    padding: 24px !important;
    background: #f9fafb !important;
    margin: 32px 0 !important;
}

.tags b {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 16px !important;
}

.tags .t {
    display: inline-block !important;
    margin: 0 8px 8px 0 !important;
}

.tags .t a {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    color: #4b5563 !important;
    transition: all 0.15s ease !important;
}

.tags .t a:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* ===== ZOOM MODAL ===== */
.zoom_parent {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 9998 !important;
}

.zoom_part {
    display: none !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.zoom_part img {
    max-width: 100% !important;
    max-height: 85vh !important;
    display: block !important;
}

.zoom_part b {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
}

/* ===== HIDE UNWANTED ===== */
.ads,
.space {
    display: none !important;
}

/* Plan offer - HIDDEN */
.plan_offer {
    display: none !important;
}

/* ============================================
   EMERGENCY FIX - FORCE ALL BUY ELEMENTS VISIBLE
   ============================================ */

/* Target ALL possible buyit containers */
.buyit,
.item_info .buyit,
.item_info .center .buyit,
.info .buyit,
.product_layout .info .buyit,
div.buyit {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 200px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 100 !important;
    margin-top: 24px !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
    padding: 0 !important;
}

/* Target ALL possible cart containers */
.itembuy_cart,
.item_info .itembuy_cart,
.buyit .itembuy_cart,
div.itembuy_cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 150px !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
}

/* Target ALL possible action containers */
.action,
.itembuy_cart .action,
.buyit .action,
div.action {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 20px !important;
    background: #ffffff !important;
}

/* Target ALL possible buy button containers */
.buy,
.action .buy,
div.buy {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Target buttons by ID - highest specificity */
button#buy,
#buy {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 50px !important;
}

button#addcart,
#addcart {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 50px !important;
}

button#rmcart,
#rmcart {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 50px !important;
}

/* Price section */
.price,
.itembuy_cart .price {
    display: block !important;
    visibility: visible !important;
    padding: 20px !important;
    background: #ffffff !important;
}

#totalprice {
    display: block !important;
    visibility: visible !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

/* Head cart */
.head_cart,
.itembuy_cart .head_cart {
    display: block !important;
    visibility: visible !important;
    background: #f3f4f6 !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.head_cart h3 {
    display: block !important;
    visibility: visible !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* Small item preview */
.small_item,
.itembuy_cart .small_item {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
}

.smallimg {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.smallimg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}
