p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #000;
}

.afe-product-detail-breadcrumb {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.afe-product-detail-breadcrumb span {
    font-size: 14px;
}

.afe-product-detail-breadcrumb span a {
    color: #000;
}

.afe-product-detail-breadcrumb span a:hover {
    text-decoration: underline;
}

/************************** Product Details **************************/
.afe-product-detail {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/************************** Product Gallery **************************/
.afe-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 700px;
}

.afe-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow: hidden;
}

.afe-gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.afe-gallery-prev,
.afe-gallery-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 22px;
    border-radius: 50%;
    margin: 18px 0;
    transition: background 0.3s;
}

/************************** Main Image style starts **************************/
.afe-main-image-slider {
    position: relative;
    max-width: 600px !important;
    width: 100%;
}

.afe-slider-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background-color: #f7f7f7;
}

.afe-prev, .afe-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.3s ease;
}

.afe-prev:hover, .afe-next:hover,
.afe-prev:focus, .afe-next:focus  {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.afe-prev { left: 10px; }
.afe-next { right: 10px; }

.afe-dots {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 6;
    display: flex;
    gap: 10px;
}

.afe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7f7f7f;
    cursor: pointer;
    transition: background 0.3s ease;
}

.afe-dot.active {
    background: #fff;
}

/************************** Product main image cursor icon **************************/
.afe-slider-wrapper {
    position: relative;
    display: inline-block;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 40 40'><defs><filter id='shadow' x='-50%' y='-50%' width='200%' height='200%'><feDropShadow dx='0' dy='2' stdDeviation='3' flood-color='rgba(0,0,0,0.3)'/></filter></defs><circle cx='20' cy='20' r='17' fill='white' filter='url(%21shadow)'/><line x1='20' y1='12' x2='20' y2='28' stroke='black' stroke-width='1'/><line x1='12' y1='20' x2='28' y2='20' stroke='black' stroke-width='1'/></svg>") 20 20, pointer;
    transition: cursor 1s ease;
}
/************************** Product Summary **************************/
.afe-product-summary {
    width: 40%;
    padding: 5px 0;
}

.afe-product-main-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #ddd;
    padding: 0 0 10px 0;
    margin-bottom: 20px;
}
.afe-product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.afe-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.afe-currency {
    font-size: 12px;
    vertical-align: bottom;
}

.afe-product-price sup {
    font-size: 12px;
    vertical-align: super;
    padding: 0 2px;
}

.afe-normal-price {
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

.afe-regular-price {
    color: #777;
    font-size: 16px;
    position: relative;
}

.afe-regular-price del {
    text-decoration: none;
    position: relative;
    display: inline-block;
    color: #777;
}

.afe-regular-price del::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px solid #d32f2f;
    transform: rotate(-10deg);
}

.afe-sale-price {
    color: #d32f2f;
    font-size: 20px;
}

.afe-sale-badge {
    display: inline-block;
    border: 1px solid #ddd;
    color: #000;
    font-size: 10px;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afe-outofstock-badge {
    display: inline-block;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    font-size: 10px;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afe-product-sku {
    font-size: 14px;
    letter-spacing: 1px;
}

.afe-product-short-description {
    font-size: 14px;
    line-height: 25px;
}

.afe-attribute-group {
    padding: 5px 0 0 0;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 5;
}

.afe-size-guide {
    display: flex;
    gap: 5px;
    padding: 15px 0;
}

.afe-size-guide {
    font-size: 15px;
}

.afe-size-guide button {
    outline: none;
    border: none;
    background: none;
    font-size: 14px;
    padding: 0;
    border-bottom: 1px solid #000;
    cursor: pointer;
}

.afe-cart-section {
    display: flex;
    gap: 10px;
    align-items: stretch;
    padding: 10px 0;
}

.afe-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    overflow: hidden;
    height: 50px;
    background: #fff;
}

.afe-qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 0 15px;
    font-size: 18px;
    cursor: pointer;
    height: 100%;
    outline: none;
}

.afe-quantity-wrapper .afe-qty {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    height: 100%;
    outline: none;
}

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

input.afe-qty[type=number] {
    -moz-appearance: textfield;
}

.afe-add-to-cart-btn {
    background: linear-gradient(to right, #000 50%, #222 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    color: #fff !important;
    border: none;
    padding: 0 25px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    height: 50px;
    flex: 1;
    transition: background-position 0.4s ease, opacity 0.4s ease;
}

.afe-add-to-cart-btn:hover {
    background-position: left bottom;
    opacity: 0.85;
    color: #fff;
}

.afe-attribute-label {
    font-size: 14px;
}

.afe-attribute-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0 0 0;
}

.afe-size-label {
    position: relative;
    cursor: pointer;
}

.afe-size-label input {
    display: none;
}

.afe-size-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #000;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.afe-size-label:hover .afe-size-circle {
    border-color: #555;

}

.afe-size-label input:checked + .afe-size-circle {
    background-color: #000;
    color: #fff;
    border-color: 2px solid #000;
}

.afe-product-description-heading {
    background-color: #000;
    color: #fff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 15px 25px;
    margin: 10px 0 20px 0;
}

.afe-product-description-heading h2 {
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.afe-product-description p {
    font-size: 14px;
}

/*********************** size guide SideBar styling **************************/
.afe-overlay {
    position: fixed !important;
    top: 0; 
    left: 0;
    width: 100% !important; 
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: 1px solid red;
}
.afe-overlay.active {
    opacity: 1;
    visibility: visible;
}

.afe-size-guide-sidebar {
    position: fixed !important;
    top: 0;
    right: -400px;
    width: 550px !important;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    z-index: 9999;
    flex: 0 0 auto;
    display: none;
    flex-direction: column;
    transition: right 0.3s ease;
    box-sizing: border-box;
}
.afe-size-guide-sidebar.active {
    right: 0;
}

.afe-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.afe-sidebar-header h2 {
    margin: 0;
    padding: 0;
    font-size: 18px;
}
.afe-close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
    background: #21232614;
    border-radius: 50px;
    display: flex;
}
.afe-sidebar-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.afe-shipping {
  color: black;
  font-size: 12px;
}


@media( max-width: 1200px ) {
    .afe-main-image-slider {
        position: relative;
        max-width: 500px;
    }
}

@media( max-width: 1085px ) {
    .afe-main-image-slider {
        position: relative;
        max-width: 400px;
    }
}

@media( max-width: 900px ) {
    .afe-product-detail {
        flex-direction: column;
    }

    .afe-main-image {
        padding: 0;
        width: 100%;
    }

    .afe-main-image img {
        width: 100%;
        height: auto;
    }
    .afe-gallery {
        display: none;
    }

    .afe-product-summary {
        width: 100%;
    }

    .afe-main-image-slider {
        position: relative;
        max-width: 100% !important;
    }
}


.afe-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

.afe-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.afe-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #000;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.6s ease;
}

.afe-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(180deg);
}

.afe-lightbox-content {
    flex: 1;
    padding: 0 0 100px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: block;
}

.afe-lightbox-main {
    max-width: calc(100% - 40px);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    min-height: fit-content;
}

.afe-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.afe-lightbox-nav:hover{
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.afe-lightbox-nav:focus {
    background: rgba(255, 255, 255, 0.9);
}

.afe-lightbox-nav.prev {
    left: 30px;
}

.afe-lightbox-nav.next {
    right: 30px;
}

.afe-lightbox-gallery {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    backdrop-filter: blur(10px);
    opacity: 0.5;
}

.afe-lightbox-gallery:hover {
    opacity: 1;
}


.afe-lightbox-gallery::-webkit-scrollbar {
    height: 4px;
}

.afe-lightbox-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.afe-lightbox-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.afe-lightbox-gallery img {
    width: 50px;
    height: 60px !important;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    border: 3px solid transparent;
    border-radius: 6px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.afe-lightbox-gallery img.active,
.afe-lightbox-gallery img:hover {
    opacity: 1;
    border-color: #fff;
    transform: scale(1.1);
}

body.lightbox-open {
    overflow: hidden;
    height: 100vh;
}

@media (max-width: 768px) {
    .afe-lightbox-content {
        padding: 0px 0px 80px;
    }
    
    .afe-lightbox-main {
        max-width: calc(100% - 20px);
    }
    
    .afe-lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .afe-lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .afe-lightbox-nav.prev {
        left: 15px;
    }
    
    .afe-lightbox-nav.next {
        right: 15px;
    }
    
    .afe-lightbox-gallery {
        padding: 10px 15px;
    }
    
    .afe-lightbox-gallery img {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .afe-lightbox-content {
        padding: 0px 0px 70px;
    }
    
    .afe-lightbox-main {
        max-width: calc(100% - 10px);
    }
    
    .afe-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .afe-lightbox-gallery img {
        width: 50px;
        height: 38px;
    }
}