
.product-details {
    padding: 40px 0;
    background: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

/* MOBILE FIXED BOTTOM BAR */
@media screen and (max-width:768px){

    #top-bar{
        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:center;

        position:fixed;
        bottom:0;

        width:auto;

        padding:4.56px 6px;
          background-color:none;
        right:0%;

        z-index:9999999;

        box-shadow:0 -2px 10px rgba(0,0,0,0.1);
    }


  #top-two{
        display:flex;
        flex-direction:row;

        position:fixed;
        bottom:0;
        width:100%;
        height:6.35%;
        
        padding:4.56px 6px;
          background-color:whitesmoke;

        z-index:50;
    }





    .header-icons{
        display:flex;
        flex-direction:row;
        align-items:center;

        position:fixed;
        bottom:0px;
        right:35%;

        width:auto;
        padding:4.0px 24px;

        background-color:none;

        z-index:9999999;
    }

    #nav-link{
        display:flex;
        flex-direction:row;
        align-items:center;

        position:fixed;
        bottom:0;
        left:0;

        width:auto;

        background-color:none;
        z-index:9999999;
    }

    #nav-links{
        display:flex;
        flex-direction:column;
        align-items:center;

        position:fixed;
        bottom:0px;
        left:15%;

        padding:0%;

        width:auto;

         background-color:none;

        z-index:9999999;
    }
   #nav-links i{
    color:black;
}

    /* MOBILE ICONS */
    .fa-user-circle,
    .fa-sign-out-alt,
    .fa-sign-in-alt,
    .fa-user-plus{
        color:#111111;
        font-size:23px;
    }

  
i.fa-home,
i.fa-truck{
    font-size:20px !important;
    color:black;
}
    i.fa-shopping-cart,
    i.fa-heart{
        font-size:23px !important;
        color:rgb(15, 0, 0);
        padding: 0 20px;
    }

    /* HIDE LOGO ON MOBILE */
    .logo{
        display:none !important;
    }

    /* HEADER SPACING */
    .header{
        padding:0 20px;
    }

}


/* FIXED: Remove white space on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px 0;
    margin: 0 0 20px 0;
    background: transparent;
}

.breadcrumb li {
    margin-right: 10px;
    font-size: 13px;
}

.breadcrumb li:not(:last-child):after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e55a00;
}

.breadcrumb .active {
    color: #e55a00;
}

/* Product Grid - FIXED GAPS */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .product-grid {
        gap: 30px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        padding: 12px;
    }
}

/* ============================================
   PRODUCT GALLERY WITH MAGNIFICATION
   ============================================ */
.product-gallery {
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .product-gallery {
        position: relative;
        top: 0;
    }
}

/* Main Image Container - Magnification Container */
.main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: crosshair;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.2s ease;
}

/* Magnification Lens Effect */
.magnifier-lens {
    position: absolute;
    border: 2px solid #e55a00;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 15;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 0 0 3px rgba(229, 90, 0, 0.2);
    display: none;
}

/* Magnified Zoom View */
.magnified-view {
    position: absolute;
    right: -340px;
    top: 0;
    width: 320px;
    height: 400px;
    border: 1px solid #eee;
    background: white;
    background-repeat: no-repeat;
    z-index: 20;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    pointer-events: none;
    display: none;
    border-radius: 4px;
    overflow: hidden;
}

/* Show magnified view on hover */
.main-image-container:hover .magnified-view {
    display: block;
}

.main-image-container:hover .magnifier-lens {
    display: block;
}

/* Responsive magnification */
@media (max-width: 1200px) {
    .magnified-view {
        right: -300px;
        width: 280px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .magnified-view {
        right: -260px;
        width: 240px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .magnified-view {
        display: none !important;
    }
    .magnifier-lens {
        display: none !important;
    }
    .main-image-container {
        cursor: default;
    }
}

/* Thumbnail Styles with Hover Magnification Preview */
.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .thumbnail-container {
        gap: 8px;
    }
}

/* Thumbnail Wrapper - for individual magnification */
.thumbnail-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

/* Thumbnail Hover Magnification - zoom effect on thumbnail itself */
.thumbnail-wrapper:hover .thumbnail {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #e55a00;
}

/* Thumbnail tooltip magnification (larger preview on hover) */
.thumbnail-magnify {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: white;
    border: 2px solid #e55a00;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
    display: none;
    overflow: hidden;
    margin-bottom: 10px;
    pointer-events: none;
}

.thumbnail-magnify img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-wrapper:hover .thumbnail-magnify {
    display: block;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive thumbnail magnification - hide on small screens */
@media (max-width: 768px) {
    .thumbnail-magnify {
        display: none !important;
    }
    .thumbnail-wrapper:hover .thumbnail {
        transform: none;
    }
}

.thumbnail:hover {
    border-color: #e55a00;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #e55a00;
    box-shadow: 0 0 0 2px rgba(229, 90, 0, 0.3);
}

@media (max-width: 768px) {
    .thumbnail {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 576px) {
    .thumbnail {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 400px) {
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Product Info */
.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 15px 0;
}

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

@media (max-width: 576px) {
    .product-title {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .product-title {
        font-size: 16px;
    }
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .product-meta {
        gap: 15px;
        font-size: 12px;
    }
}

.product-meta a {
    color: #666;
    text-decoration: none;
}

.product-meta a:hover {
    color: #e55a00;
}

/* Price Box */
.price-box {
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .price-box {
        padding: 15px;
    }
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

@media (max-width: 400px) {
    .price-row {
        gap: 10px;
    }
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #e55a00;
}

@media (max-width: 768px) {
    .current-price {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .current-price {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .current-price {
        font-size: 20px;
    }
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .old-price {
        font-size: 14px;
    }
}

.discount-badge {
    background: #e55a00;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-status {
    font-size: 13px;
}

.in-stock {
    color: #10b981;
}

.out-of-stock {
    color: #ef4444;
}

/* Variant Section */
.variant-section {
    margin: 20px 0;
}

.variant-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .variant-btn {
        padding: 10px 16px;
        min-height: 40px;
    }
}

.variant-btn:hover {
    border-color: #e55a00;
}

.variant-btn.active {
    background: #e55a00;
    border-color: #e55a00;
    color: #fff;
}

/* Quantity Section */
.quantity-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .quantity-controls {
        width: 100%;
        justify-content: center;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {
    .quantity-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
}

@media (max-width: 768px) {
    .quantity-input {
        height: 40px;
        width: 70px;
    }
}

.max-stock {
    font-size: 12px;
    color: #666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

.btn-add-to-cart {
    flex: 1;
    background: #e55a00;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background: #c44d00;
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .btn-add-to-cart,
    .btn-wishlist {
        padding: 12px 20px;
        min-height: 48px;
    }
}

.btn-wishlist {
    background: #fff;
    border: 1px solid #ddd;
    padding: 14px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wishlist:hover {
    border-color: #e55a00;
    color: #e55a00;
}

/* Additional Info */
.additional-info {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.info-item i {
    width: 20px;
    color: #e55a00;
}

/* Product Tabs */
.product-tabs {
    background: #fff;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .tabs-header {
        padding: 0 15px;
    }
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}

.tab-btn:hover {
    color: #e55a00;
}

.tab-btn.active {
    color: #e55a00;
    border-bottom-color: #e55a00;
}

.tab-content {
    padding: 25px;
}

@media (max-width: 768px) {
    .tab-content {
        padding: 15px;
    }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

@media (max-width: 768px) {
    .specs-table th,
    .specs-table td {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .specs-table th,
    .specs-table td {
        display: block;
        width: 100%;
    }
    
    .specs-table th {
        padding-bottom: 0;
    }
}

.specs-table th {
    width: 30%;
    font-weight: 600;
    color: #333;
}

.specs-table td {
    color: #666;
}

/* Related Products */
.related-products {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 3px solid #e55a00;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 18px;
    }
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .product-img {
        height: 130px;
    }
}

@media (max-width: 400px) {
    .product-img {
        height: 120px;
    }
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fafafa;
    transition: transform 0.3s ease;
}

/* Image zoom on product card hover */
.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge {
    background: #e55a00;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

@media (max-width: 400px) {
    .badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Product Actions */
.product-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

@media (min-width: 769px) {
    .product-actions {
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    .product-card:hover .product-actions {
        opacity: 1;
    }
}

.product-actions a,
.product-actions button {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: all 0.2s;
}

.product-actions a:hover,
.product-actions button:hover {
    background: #e55a00;
    border-color: #e55a00;
    color: #fff;
}

@media (max-width: 768px) {
    .product-actions {
        opacity: 1 !important;
        bottom: 8px;
        right: 8px;
    }
    
    .product-actions a,
    .product-actions button {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #ddd;
    }
}

@media (max-width: 576px) {
    .product-actions a,
    .product-actions button {
        width: 32px;
        height: 32px;
    }
}

.product-body {
    padding: 12px;
}

@media (max-width: 768px) {
    .product-body {
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .product-body {
        padding: 8px;
    }
}

.product-card .product-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

@media (max-width: 768px) {
    .product-card .product-title {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .product-card .product-title {
        font-size: 11px;
    }
}

.product-card .product-title a {
    color: #000;
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: #e55a00;
}

.product-rating {
    font-size: 11px;
    color: #ffc107;
    margin-bottom: 5px;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #e55a00;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 13px;
    }
}

.btn-outline {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border: 1px solid #e55a00;
    color: #e55a00;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

@media (max-width: 400px) {
    .btn-outline {
        padding: 6px;
        font-size: 11px;
    }
}

.btn-outline:hover {
    background: #e55a00;
    color: #fff;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

@media (max-width: 768px) {
    .notification {
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: auto;
        width: auto;
        max-width: none;
        text-align: center;
        animation: slideInDown 0.3s ease;
        border-radius: 8px;
        z-index: 10001;
    }
}

@media (max-width: 576px) {
    .notification {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Landscape mode fix for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .main-image {
        height: 200px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .notification {
        top: 8px;
        left: 8px;
        right: 8px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-actions {
        opacity: 1 !important;
    }
    
    .btn-add-to-cart,
    .btn-wishlist,
    .variant-btn,
    .quantity-btn,
    .tab-btn,
    .product-actions a,
    .product-actions button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .btn-add-to-cart:active {
        background: #c44d00;
    }
    
    .btn-wishlist:active {
        border-color: #e55a00;
        color: #e55a00;
    }
    
    .product-actions a:active,
    .product-actions button:active {
        background: #e55a00;
        border-color: #e55a00;
        color: #fff;
        transform: scale(0.95);
    }
    
    /* Disable thumbnail magnification on touch devices */
    .thumbnail-magnify {
        display: none !important;
    }
    
    .thumbnail-wrapper:hover .thumbnail {
        transform: none;
    }
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
    .product-details,
    .product-grid,
    .product-tabs,
    .related-products,
    .related-grid,
    [class*="grid"],
    [class*="container"] {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .product-card,
    .related-grid > * {
        min-width: 0;
        width: 100%;
    }
    
    .product-title,
    .breadcrumb li,
    .tab-btn {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .thumbnail-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .thumbnail-container::-webkit-scrollbar {
        height: 3px;
    }
    
    .thumbnail-container::-webkit-scrollbar-track {
        background: #eee;
    }
    
    .thumbnail-container::-webkit-scrollbar-thumb {
        background: #e55a00;
    }
}
