/* Product Page Styles */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-gray: #2c2c2c;
    --medium-gray: #333333;
    --dark-gray: #b3b3b3;
    --text-color: #ffffff;
    --body-bg: #121212;
    --success-color: #28a745;
    --border-radius: 15px;
    --button-radius: 25px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Container */
.product-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 6rem;
}

.main-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    background-color: #2c2c2c;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.2s ease, opacity 0.2s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    background-color: #2c2c2c;
}

.thumbnail-images img:hover {
    transform: scale(1.05);
}

.thumbnail-images img.active {
    border-color: var(--secondary-color);
}

/* Product Details */
.product-details {
    flex: 1;
    min-width: 300px;
}

.product-details h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: opacity 0.2s ease;
}

/* Product tags / badges (New Arrival, Best Seller, etc.) */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    white-space: nowrap;
}

.product-tag.tag-new {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.product-tag.tag-bestseller {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.product-tag.tag-limited {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.rating {
    display: flex;
    align-items: center;
}

.rating:hover {
    opacity: 0.9;
    transform: scale(1.01);
    transition: all 0.15s ease;
}

.rating i {
    color: #ffc107;
    margin-right: 2px;
    transition: all 0.3s ease;
}

.rating span {
    margin-left: 5px;
    color: var(--dark-gray);
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}

/* Skeleton loader removed - no longer needed */

/* Star animation for when rating loads */
.rating .star-animate {
    animation: starFill 0.4s ease-out forwards;
}

@keyframes starFill {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Simple review text - clean and minimal */

/* Ensure stars and text maintain proper layout */
.rating .stars {
    display: flex;
    align-items: center;
}

.rating #rating-text {
    display: inline;
}

.stock-status {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stock-status:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stock-status span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 6px;
    border-radius: 5px;
}

.in-stock {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.low-stock {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.out-of-stock {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.not-available {
    background-color: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* Eye button for stock details */
.stock-info-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.stock-info-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.stock-info-btn i {
    font-size: 12px;
}

/* Tooltip for stock information */
.stock-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 280px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Arrow removed for better alignment */

.stock-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-100%);
}

/* Disabled button styles for out of stock and not available */
.add-to-cart-btn.out-of-stock-disabled,
.buy-now-btn.out-of-stock-disabled {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.add-to-cart-btn.not-available-disabled,
.buy-now-btn.not-available-disabled {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.add-to-cart-btn.out-of-stock-disabled:hover,
.buy-now-btn.out-of-stock-disabled:hover,
.add-to-cart-btn.not-available-disabled:hover,
.buy-now-btn.not-available-disabled:hover {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading state for buttons */
.add-to-cart-btn.loading,
.buy-now-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.add-to-cart-btn.loading::after,
.buy-now-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


.product-sku {
    font-size: 14px;
    color: var(--dark-gray);
    padding: 4px 10px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

/* Price Section */
.price-section {
    margin-bottom: 30px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    transition: opacity 0.2s ease;
}

.original-price {
    text-decoration: line-through;
    color: var(--dark-gray);
    font-size: 18px;
    transition: opacity 0.2s ease;
}

.discount {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

/* Tax Info */
.tax-info {
    margin-top: -12px;
}

.tax-included {
    color: var(--dark-gray);
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
}

/* Product Options */
.product-options {
    margin-bottom: 25px;
}

.size-option h3, .product-description h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
}

.size-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 10px 18px;
    border: 2px solid #333;
    border-radius: var(--button-radius);
    background: #1c1c1c;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.size-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.size-btn:hover:not(.active) {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.size-btn.disabled, 
.size-btn.out-of-stock {
    background-color: #333;
    border-color: #444;
    color: var(--dark-gray);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.size-btn.disabled:hover, 
.size-btn.out-of-stock:hover {
    transform: none;
    border-color: #444;
}

.size-btn.out-of-stock:after {
    content: 'Out of Stock';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    font-size: 12px;
    color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.size-btn.out-of-stock:hover:after {
    opacity: 1;
    bottom: -25px;
}

/* Product Description */
.product-description {
    margin-bottom: 25px;
    color: var(--text-color);
}

.product-description ul {
    padding-left: 20px;
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
}

.product-description li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 5px;
}

.product-description li::before {


    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}

/* Add to Cart Section */
.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #333;
    border-radius: var(--button-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 130px;
    max-width: fit-content;
    transition: all 0.3s ease;
    background-color: #0a0a0a;
}

.quantity-selector:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.qty-btn {
    width: 40px;
    height: 44px;
    background-color: #1c1c1c;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qty-btn:hover {
    background-color: #333;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qty-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Remove any default browser arrows/spinners */
.qty-btn::-webkit-outer-spin-button,
.qty-btn::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #2a2a2a;
}

.qty-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: #2a2a2a;
}

#quantity {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background-color: #0a0a0a;
    color: var(--text-color);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: all 0.3s ease;
}

#quantity:focus {
    background-color: #1a1a1a;
    box-shadow: none;
    outline: none;
}

/* Remove number input arrows */
#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn, .buy-now-btn {
    padding: 12px 25px;
    border-radius: var(--button-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    transform: translateY(0) !important;
}

.add-to-cart-btn {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .add-to-cart-btn:hover {
        background-color: #2980b9 !important;
        border-color: #2980b9 !important;
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5) !important;
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
}

.add-to-cart-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.buy-now-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.1);
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .buy-now-btn:hover {
        background-color: var(--accent-color) !important;
        color: white !important;
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4) !important;
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
}

.buy-now-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Add icons to buttons */
.add-to-cart-btn::before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
    font-weight: 900;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .add-to-cart-btn:hover::before {
        transform: none;
    }
}

.buy-now-btn::before {
    content: '\f1d8';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
    font-weight: 900;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .buy-now-btn:hover::before {
        transform: none;
    }
}

.add-to-cart-btn.out-of-stock {
    background-color: #333;
    border-color: #444;
    color: var(--dark-gray);
    cursor: not-allowed;
    box-shadow: none;
}

.add-to-cart-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn.out-of-stock::before {
    content: '\f05e';
}

/* Delivery Info */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #1c1c1c;
    border-radius: var(--border-radius);
    color: var(--text-color);
}

.delivery-info i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Product Tabs */
.product-tabs {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s;
    color: var(--text-color);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-pane h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tab-pane p {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Specifications */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    transition: opacity 0.2s ease;
}

/* Product Gallery in Specifications Tab */
#specifications .product-gallery {
    width: 100%;
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #2c2c2c;
}

#specifications .product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.specs-table tr:nth-child(even) {
    background-color: #232323;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.specs-table th {
    width: 30%;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Reviews */
.review-summary {
    align-items: center;
    margin-bottom: 30px;
}

.rating-average {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stars {
    margin: 10px 0;
}

.stars i {
    color: #ffc107;
    font-size: 18px;
}

.stars .fa-star-half-alt {
    color: #ffc107 !important;
    opacity: 1 !important;
}

/* Ensure half-star displays correctly */
.fa-star-half-alt {
    color: #ffc107 !important;
}

.review-count {
    color: var(--dark-gray);
    font-size: 14px;
}

.review-item {
    border-bottom: 1px solid #333;
    padding: 20px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.review-date {
    color: var(--dark-gray);
    font-size: 14px;
}

.review-rating {
    margin-bottom: 10px;
}

.review-text {
    line-height: 1.6;
    white-space: pre-wrap; /* Preserve line breaks and wrap text */
    word-wrap: break-word; /* Break long words if needed */
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    font-size: 28px;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Related Products */
.related-products {
    display: none;   /* Hide related product for now */
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 20px;
    text-align: center; /* Center all content */
}

.related-products .container {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-products .section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.related-products .section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.related-products .product-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    text-align: left;
}

.related-products .product-card__image {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background-color: #2c2c2c;
}

.related-products .product-card__price {
    margin: 8px 0;
}

.related-products .product-card__regular-price {
    font-size: 0.85rem;
    opacity: 0.8;
}

.related-products .product-card__sale-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .related-products .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
    
    .related-products .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .related-products {
        margin: 60px auto 40px;
    }
    
    .related-products .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .related-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .related-products {
        margin: 40px auto 30px;
        padding: 0 15px;
    }
    
    .related-products .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .related-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .related-products .product-card__price {
        margin: 5px 0;
    }
    
    .related-products .product-card__regular-price {
        font-size: 0.75rem;
    }
    
    .related-products .product-card__sale-price {
        font-size: 0.9rem;
    }
}

.related-products .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.related-products .product-card__info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-products .product-card__title {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.related-products .product-card__actions {
    padding: 0.75rem 1rem 1rem;
}

@media (max-width: 768px) {
    .related-products .product-card__title {
        font-size: 0.85rem;
        height: auto;
        max-height: 2.5em;
    }
    
    .related-products .product-card__actions {
        padding: 0.6rem 0.75rem 0.75rem;
    }
}

/* Main Footer Area */
.footer-main {
    padding: 3rem 0 4rem;
    background-color: var(--body-bg);
    color: #f8f9fa;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Brand Section */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo-container {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.logo-tagline {
    font-size: 0.875rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-container {
        gap: 25px;
    }
    
    /* Remove sticky positioning on mobile to prevent images from scrolling with screen */
    .product-gallery {
        position: static;
        top: auto;
        width: 100%;
    }
    
    .main-image {
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .thumbnail-images img {
        height: 120px;
        border-radius: 6px;
    }
    
    .tab-buttons {
        gap: 5px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .add-to-cart-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        width: auto;
        min-width: auto;
        max-width: 200px;
        margin-bottom: 10px;
        border-radius: 20px;
    }
    
    .add-to-cart-btn, .buy-now-btn {
        width: 100%;
    }
    
    .size-buttons {
        gap: 8px;
    }
    
    .size-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Animation for product loading */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-container {
    animation: productFadeIn 0.5s ease-out;
}

/* Remove focus outlines to prevent glitchy persistent borders */
.size-btn:focus, 
.qty-btn:focus, 
.add-to-cart-btn:focus, 
.buy-now-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Click animation for add-to-cart button */
.add-to-cart-btn:active {
    transform: translateY(-2px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
    transition: all 0.1s ease !important;
}

/* Click animation for buy-now button */
.buy-now-btn:active {
    transform: translateY(-2px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
    transition: all 0.1s ease !important;
}

/* Variant buttons have no click animation - only hover effects */

/* Mobile touch optimizations for buttons - DISABLE hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .add-to-cart-btn:hover,
    .buy-now-btn:hover {
        transform: none !important;
        box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3) !important;
    }
    
    .buy-now-btn:hover {
        box-shadow: 0 4px 10px rgba(231, 76, 60, 0.1) !important;
    }
    
    .add-to-cart-btn:hover::before,
    .buy-now-btn:hover::before {
        transform: none !important;
    }
    
    /* Add active states for touch feedback */
    .add-to-cart-btn:active,
    .buy-now-btn:active {
        transform: translateY(-1px) !important;
        transition: transform 0.1s ease !important;
    }
}

/* Touch active state for button feedback */
.add-to-cart-btn.touch-active,
.buy-now-btn.touch-active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Make buttons more touch-friendly on mobile */
@media (max-width: 480px) {

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    

    .size-btn {
        min-width: 80px;
    }
    
    .add-to-cart-btn, .buy-now-btn {
        padding: 14px 20px;
        min-height: 44px; /* iOS recommended touch target size */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .quantity-selector {
        border-radius: 18px;
        min-width: 80px;
        max-width: 120px;
    }
    
    .qty-btn {
        width: 36px;
        height: 40px;
    }
    
    #quantity {
        width: 45px;
        height: 40px;
    }
    
    /* Enhanced mobile gallery */
    .product-gallery {
        margin-bottom: 20px;
    }
    
    .main-image {
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail-images img {
        height: 80px;
        border-radius: 6px;
    }
    
    /* Product details mobile optimizations */
    .product-details h1 {
        font-size: 20px;
    }
    
    .product-description li,
    .product-description ul,
    .product-description ul li,
    #description p {
        font-size: 14px;
    }
    
    .specs-table th, 
    .specs-table td {
        font-size: 12px;
    }
    
    #specifications .product-gallery img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

    .reviews-container  .review-header {
        gap: 5px;
        margin-bottom: 7px;
    }

    .reviews-container .review-item .verified {
        font-size: 0.7rem;
    }
    
    .reviews-container .review-item .review-rating {
        font-size: 14px;
    }
    
    .reviews-container .review-item .review-stars {
        font-size: 0.7rem;
    }
    .reviews-container .review-item .review-date {
        font-size: 0.7rem;
    }
    .reviews-container .review-item .review-variant {
        font-size: 0.7rem;
    }
    .reviews-container .review-item .review-title {
        font-size: 14px;
    }
    .reviews-container .review-item .review-text {
        font-size: 14px;
    }




}

/* Variant transition effects */
.product-details h1,
.current-price,
.original-price,
.discount,
.stock-status span,
.product-sku,
.add-to-cart-btn,
.buy-now-btn,
#description p,
.product-description ul,
.specs-table {
    transition: opacity 0.2s ease;
}

/* Add specific transition for product images */
.main-image img {
    transition: opacity 0.2s ease;
}

/* Add transition for thumbnail images */
.thumbnail-images img {
    transition: transform 0.3s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.out-of-stock-notification {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.out-of-stock-notification p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 15px;
}

.notification-form {
    display: flex;
    gap: 10px;
}

.notification-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: var(--button-radius);
    background-color: #1c1c1c;
    color: var(--text-color);
    font-size: 14px;
}

.notification-form button {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notification-form button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

@media (max-width: 576px) {
    .notification-form {
        flex-direction: column;
    }
    
    .notification-form input,
    .notification-form button {
        width: 100%;
    }
}

/* Product images, titles, and descriptions all have fade transitions now */
.product-meta > div,
.price-section .price > span,
.product-description ul li,
.product-details h1,
.main-image img,
.thumbnail-images img {
    transition: opacity 0.3s ease;
}

/* Loading indicator for variant switching */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(18, 18, 18, 0.7);
    border-radius: 10px;
    z-index: 10;
}

.loading-indicator i {
    font-size: 2.5rem;
    color: #3498db;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}