/* --- Page Header / Breadcrumb --- */
.page-header {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 50px;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.breadcrumb {
    color: var(--text-grey);
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--dark);
    font-weight: 600;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span.current {
    color: var(--primary);
    font-weight: 600;
    margin-left: 5px;
}

/* --- Shop Layout (Sidebar + Main) --- */
.shop-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

/* Sidebar Styling */
.shop-sidebar {
    width: 25%;
    flex-shrink: 0;
}
.filter-widget {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}
.filter-widget:last-child {
    border: none;
}
.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 3px;
    height: 15px;
    background: var(--primary);
}

/* Shop Search */
.shop-search {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.shop-search input {
    width: 100%;
    border: none;
    padding: 10px;
    outline: none;
}
.shop-search button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}
.shop-search button:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Categories List */
.cat-list li {
    margin-bottom: 12px;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.95rem;
}
.cat-list li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}
.cat-list li a span {
    color: #999;
    font-size: 0.8rem;
}

/* Price Slider */
.price-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}
.price-value {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.color-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.color-dot:hover {
    transform: scale(1.2);
}

/* Main Shop Area */
.shop-main {
    flex: 1;
}
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.shop-top-bar p {
    color: #666;
    font-size: 0.9rem;
}
.sort-box select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* Responsive */
@media (max-width: 991px) {
    .shop-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
    }
    .filter-widget {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* =========================================
   SHOP & PRODUCT PAGE STYLES
   ========================================= */

/* --- 1. Page Header (User Provided) --- */
.page-header {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 50px;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.breadcrumb {
    color: var(--text-grey);
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--dark);
    font-weight: 600;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span.current {
    color: var(--primary);
    font-weight: 600;
    margin-left: 5px;
}

/* --- 2. Shop Layout (Sidebar + Main) --- */
.shop-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}
.shop-sidebar {
    width: 25%;
    flex-shrink: 0;
}
.filter-widget {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}
.filter-widget:last-child {
    border: none;
}
.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 3px;
    height: 15px;
    background: var(--primary);
}

.shop-search {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.shop-search input {
    width: 100%;
    border: none;
    padding: 10px;
    outline: none;
}
.shop-search button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}
.shop-search button:hover {
    background: var(--primary);
    color: var(--dark);
}

.cat-list li {
    margin-bottom: 12px;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.95rem;
}
.cat-list li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}
.cat-list li a span {
    color: #999;
    font-size: 0.8rem;
}

.price-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}
.price-value {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.shop-main {
    flex: 1;
}
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.shop-top-bar p {
    color: #666;
    font-size: 0.9rem;
}
.sort-box select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* =========================================
   1. SHOP PAGE GENERAL STYLES
   ========================================= */

/* --- Page Header (Gray Box) --- */
.page-header {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 50px;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.breadcrumb {
    color: #666;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--dark);
    font-weight: 600;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    margin: 0 5px;
    color: #ccc;
}
.breadcrumb span.current {
    color: var(--primary);
    font-weight: 600;
    margin-left: 0;
}

/* --- Shop Layout (Sidebar + Main) --- */
.shop-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

/* Sidebar Styling */
.shop-sidebar {
    width: 25%;
    flex-shrink: 0;
}
.filter-widget {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}
.filter-widget:last-child {
    border: none;
}
.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 3px;
    height: 15px;
    background: var(--primary);
}

/* Shop Search */
.shop-search {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.shop-search input {
    width: 100%;
    border: none;
    padding: 10px;
    outline: none;
}
.shop-search button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}
.shop-search button:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Categories List */
.cat-list li {
    margin-bottom: 12px;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.95rem;
}
.cat-list li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}
.cat-list li a span {
    color: #999;
    font-size: 0.8rem;
}

/* Price Slider */
.price-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}
.price-value {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Main Shop Area */
.shop-main {
    flex: 1;
}
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.shop-top-bar p {
    color: #666;
    font-size: 0.9rem;
}
.sort-box select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* =========================================
   2. PRODUCT DETAILS PAGE STYLES
   ========================================= */

/* Product Layout Wrapper */
.product-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}
.product-gallery {
    flex: 1;
}
.product-info {
    flex: 1;
}

/* Gallery */
.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-row {
    display: flex;
    gap: 10px;
}
.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

/* Info Section Text */
.product-title-main {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
}
.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.product-meta .rating {
    color: #f1c40f;
    display: flex;
    align-items: center;
    gap: 5px;
}
.product-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}
.product-desc {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1rem;
}

/* Color Options */
.option-group {
    margin-bottom: 30px;
}
.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}
.color-options {
    display: flex;
    gap: 10px;
}
.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: var(--transition);
}
.color-dot.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

/* --- CART ACTION BUTTONS (ALIGNMENT FIXED) --- */
.cart-action-wrapper {
    display: flex;
    align-items: center; /* Vertical Center Logic */
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

/* Quantity Box */
.quantity-box {
    display: flex;
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
}
.qty-btn {
    width: 45px;
    height: 100%;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin: 0;
    padding: 0;
}
.qty-btn:hover {
    background: #eee;
}
.quantity-box input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
    margin: 0;
    padding: 0;
}
.quantity-box input::-webkit-outer-spin-button,
.quantity-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button (Fixed Margin & Alignment) */
.add-to-cart-lg {
    height: 50px;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    background: var(--dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);

    /* Flex alignment inside button */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Removing default browser margins */
}
.add-to-cart-lg:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Wishlist Button (Fixed Margin & Alignment) */
.wishlist-btn {
    height: 50px;
    width: 50px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);

    /* Flex alignment inside button */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
}
.wishlist-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Safe Checkout */
.safe-checkout {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}
.safe-checkout p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.safe-checkout i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Tabs */
.product-tabs {
    margin-bottom: 80px;
    margin-top: 40px;
}
.tab-list {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.tab-item {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    position: relative;
    font-size: 1.1rem;
}
.tab-item.active {
    color: var(--dark);
}
.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}
.content-pane {
    display: none;
    line-height: 1.8;
    color: #555;
}
.content-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table th,
.info-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.info-table th {
    width: 200px;
    color: var(--dark);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .shop-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
    }
    .product-wrapper {
        flex-direction: column;
    }
    .product-gallery,
    .product-info {
        width: 100%;
    }
    .main-image {
        height: 400px;
    }
    .filter-widget {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}
@media (max-width: 500px) {
    .cart-action-wrapper {
        flex-wrap: wrap;
    }
    .add-to-cart-lg {
        flex: 1;
    }
    .quantity-box {
        margin-bottom: 10px;
    }
}

/* --- Product Actions (Bottom Buttons) --- */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures buttons stick to bottom */
    height: 100%; /* Agar grid mein height issue ho to */
}

.p-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Thora gap taake chipka hua na lage */
    padding: 0 15px 15px 15px; /* Side aur Bottom padding */
}

/* 80% Buy Now Button */
.buy-now-btn {
    flex: 4; /* 80% width logic */
    background: var(--dark); /* Dark background */
    color: #fff;
    border: none;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
}

.buy-now-btn:hover {
    background: var(--primary); /* Neon Green on hover */
    color: var(--dark);
}

/* 20% Cart Icon */
.add-cart-icon {
    flex: 1; /* 20% width logic */
    background: #f4f4f4; /* Light gray */
    color: var(--dark);
    border: 1px solid #ddd;
    padding: 10px 0;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart-icon:hover {
    background: var(--dark);
    color: var(--primary); /* Neon Icon on hover */
    border-color: var(--dark);
}
