.header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
}





.product-section {
    /*padding: 40px 0;*/
}

.product-grid {
    /*display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;*/
}

.product-gallery {
    /*max-width: 800px !important;
    position: sticky;
    top: 120px;*/
}

.main-image {
    /*width: 100%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;*/
}

.main-image img {
    /*width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;*/
}

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

.thumbnail-grid {
   /* display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;*/
}

.thumbnail {
    /*aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    background: #f8f8f8;*/
}

.thumbnail.active {
    /*border-color: #000;*/
}

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

.product-info h1 {
    /*font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;*/
}

.brand {
    /*color: #8B4CB8;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;*/
}

.product-type {
    /*color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;*/
}

.price {
   /* font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;*/
}

.price-note {
    /*color: #666;
    font-size: 0.85rem;
    margin-bottom: 30px;*/
}

.color-section {
    margin-bottom: 30px;
}

.color-label {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.color-option.active {
    border-color: #000;
}

.color-orange { background: #D2691E; }
.color-pink { background: #DDA0DD; }
.color-brown { background: #8B4513; }
.color-dark-brown { background: #654321; }

.size-section {
    margin-bottom: 30px;
}

.size-label {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.size-text {
    color: #666;
    font-size: 0.85rem;
}

.add-to-cart {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    margin-bottom: 20px;
}

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

.product-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.detail-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-title {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-content {
    display: none;
    padding-top: 10px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.detail-item.active .detail-content {
    display: block;
}

/* Mini Cart Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-cart.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.cart-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 2px;
    font-size: 0.8rem;
}

.remove-item {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.remove.loading {
    opacity: 0.6;
    pointer-events: none;
}

.remove.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #999;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

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

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}
.cart-buttons {
display: flex;
gap: 10px;
margin-top: 15px;
}
.checkout-btn, .view-cart-btn {
width: 100%;
background: #000;
color: white;
border: none;
padding: 15px;
/* font-size: 1rem; */
/* font-weight: 500; */
letter-spacing: 1px;
cursor: pointer;
border-radius: 4px;
display: block;
font-style: unset;
text-decoration: none;
text-align: center;
line-height: 1.2;
}
.view-cart-btn {
background: #fff;
color: #000;
border: 2px solid #000;
}

.view-cart-btn:hover {
background: #f8f8f8;
color: #000;
}

.checkout-btn {
background: #000;
color: #fff;
border: 2px solid #000;
}

.checkout-btn:hover {
background: #333;
border-color: #333;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mini-cart {
        width: 100%;
        right: -100%;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Attributes */
.product-attribute {
margin: 15px 0;
}
.attribute-option {
display: inline-block;
margin-right: 10px;
cursor: pointer;
}
.attribute-option input {
display: none;
}
.attribute-option .swatch {
position: relative;
display: inline-block;
width: 30px;
height: 30px;
border-radius: 50%;
border: 1px solid #ccc;
}
.attribute-option .under-swatch {
position: relative;
display: block;
width: 20px;
text-align: center;
border-bottom: 1px solid;
}
.attribute-option img {
width: 30px;
height: auto;
border: 1px solid #ccc;
}
/*.attribute-option input:checked + .swatch,
.attribute-option input:checked + img {
border: 2px solid #000;
}*/
.attribute-option input:checked + .swatch:after,
.attribute-option input:checked + img:after {
content: "";
position: absolute;
border-radius: 50%;
left: -5px;
top: -5px;
width: 30px;
height: 30px;
border: 2px solid;
border-style: solid;
border-color: #000000;
-webkit-transition: border .2s linear;
transition: border .2s linear;
}
.product-attribute.pa_size .attribute-option input:checked + .under-swatch:after {
content: "";
position: absolute;
width: 100%;
bottom: 0;
left: 0;
border-bottom: 2px solid #000;
}



/* Enhanced Product Attribute Styles */


/* Mini-Cart Attribute Styles */
.mini-cart-meta {
margin: 8px 0;
font-size: 0.8rem;
}

.meta-line {
margin-bottom: 4px;
display: flex;
align-items: center;
flex-wrap: wrap;
}

.meta-label {
font-weight: 500;
color: #666;
margin-right: 5px;
}

.meta-value {
color: #333;
}

.color-meta .mini-swatch {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin: 0 5px;
vertical-align: middle;
border: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-cart-item {
display: flex;
gap: 12px;
padding: 15px 0;
border-bottom: 1px solid #eee;
position: relative;
}

.mini-cart-item:last-child {
border-bottom: none;
}

.mini-cart-thumb {
width: 60px;
height: 60px;
flex-shrink: 0;
background: #f8f8f8;
border-radius: 4px;
overflow: hidden;
}

.mini-cart-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}

.mini-cart-info {
flex: 1;
min-width: 0;
}

.mini-cart-title {
font-size: 0.9rem;
font-weight: 500;
color: #333;
text-decoration: none;
display: block;
margin-bottom: 5px;
line-height: 1.3;
}

.mini-cart-title:hover {
color: #000;
}

.mini-cart-qty-price {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 8px;
font-size: 0.85rem;
}

.mini-cart-qty {
color: #666;
}

.mini-cart-price {
font-weight: 600;
color: #333;
}

.remove_from_cart_button {
position: absolute;
top: 10px;
right: 0;
width: 20px;
height: 20px;
border: none;
background: none;
color: #999;
cursor: pointer;
font-size: 16px;
line-height: 1;
transition: color 0.3s;
}

.remove_from_cart_button:hover {
color: #e74c3c;
}

.remove_from_cart_button.loading {
opacity: 0.5;
pointer-events: none;
}

/* Loading states */
.single_add_to_cart_button.loading {
background: #666 !important;
cursor: not-allowed;
opacity: 0.7;
}

/* Empty cart state */
.empty-cart {
text-align: center;
color: #999;
font-style: italic;
padding: 40px 20px;
font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.mini-cart-item {
gap: 10px;
padding: 12px 0;
}

.mini-cart-thumb {
width: 50px;
height: 50px;
}

.meta-line {
font-size: 0.75rem;
}

.mini-cart-title {
font-size: 0.85rem;
}

.attribute-option .swatch {
width: 25px;
height: 25px;
}
}

/* Related Products Section */
.related-products-section {
max-width: 1200px;
margin: 60px auto 40px;
padding: 0 20px;
position: relative; /* For absolute positioning of arrows */
}

.related-title {
font-size: 1.3rem;
font-weight: 600;
letter-spacing: 2px;
margin: 0 0 30px 0;
color: #000;
text-transform: uppercase;
text-align: center;
}

.related-products-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
padding: 0!important;
margin: 0 2rem!important;
}

/* Swiper mode for mobile - override grid */
.related-products-grid.swiper {
display: block;
position: relative;
overflow: hidden;
}

.related-products-grid.swiper .swiper-wrapper {
display: flex;
/*gap: 15px;*/
}

.related-products-grid.swiper .swiper-slide {
width: 50% !important;
flex-shrink: 0;
box-sizing: border-box;
}

/* Navigation arrows for related products swiper - Same style as product gallery */
/* Arrows are OUTSIDE the swiper container, in .related-products-section */
.related-products-section .swiper-button-next,
.related-products-section .swiper-button-prev {
color: #000;
width: auto;
height: auto;
margin-top: 0;
top: 60%;
transform: translateY(-50%);
z-index: 10;
position: absolute;
}

/* Position arrows OUTSIDE the swiper grid container */
/* Arrows should be positioned relative to the grid, but outside it */
.related-products-section .swiper-button-next {
right: 5%;
}

.related-products-section .swiper-button-prev {
left: 5%;
}

/* Same styling as product gallery swiper arrows */
.related-products-section .swiper-button-prev:after, 
.related-products-section .swiper-button-next:after {
content: "";
position: absolute;
top: 60%;
width: 10px;
border-top: 1px solid #000;
transition: all .3s;
transform-origin: center;
z-index: 10;
transform: rotate(45deg);
font-size: 12px;
}

.related-products-section .swiper-button-next:before, 
.related-products-section .swiper-button-prev:before {
content: "";
position: absolute;
top: 91%;
width: 10px;
border-top: 1px solid #000;
transition: all .3s;
transform-origin: center;
transform: rotate(-45deg);
}

.related-products-section .swiper-button-prev:before {
transform: rotate(45deg);
}

.related-products-section .swiper-button-prev:after {
transform: rotate(-45deg);
}

/* Positioning already set above */

.related-products-section .swiper-button-disabled {
opacity: 0.35;
cursor: auto;
pointer-events: none;
}

.related-product-item {
text-align: center;
}

.related-product-link {
text-decoration: none;
color: inherit;
display: block;
transition: transform 0.3s;
}

.related-product-link:hover {
transform: translateY(-5px);
}

.related-product-image {
width: 100%;
aspect-ratio: 1;
background: #f8f8f8;
border-radius: 8px;
overflow: hidden;
margin-bottom: 15px;
}

.related-product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}

.related-product-link:hover .related-product-image img {
transform: scale(1.05);
}

.related-product-name {
font-size: 0.95rem;
font-weight: 500;
margin: 0 0 8px 0;
line-height: 1.3;
color: #333;
}

.related-product-price {
font-size: 1rem;
font-weight: 600;
color: #000;
}

.related-product-price .amount {
font-weight: 600;
}

/* Responsive for related products */
@media (max-width: 1024px) {
.related-products-grid:not(.swiper) {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
}

/* Mobile Swiper (≤780px) */
@media (max-width: 780px) {
.related-products-grid.swiper {
padding: 0 2rem; /* Space for navigation arrows */
}

.related-products-grid.swiper .swiper-slide {
width: calc(50% - 10px) !important;
margin: 0!important;
}
.related-products-grid.swiper .swiper-slide:nth-child(odd) {
    margin-right: 5px !important;
}

.related-products-grid.swiper .swiper-slide:nth-child(even) {
    margin-left: 5px !important;
}
}

@media (max-width: 640px) {
.related-products-section {
margin: 40px auto 30px;
}

.related-title {
font-size: 1.1rem;
margin-bottom: 20px;
}

.related-products-grid:not(.swiper) {
grid-template-columns: 1fr;
gap: 25px;
}

.related-product-image {
max-width: 300px;
margin: 0 auto 15px;
}

.related-products-grid.swiper {
padding: 0 2rem;
}
}

.product-section .product-container.container {
max-width: 1227px;
}