/*
Theme Name: AKStore-theme
Theme URI: https://akstyledrop.com
Author: AK StyleDrop Team
Description: Custom E-Commerce Theme paired with AKStore Core Plugin.
Version: 1.0.0
*/
	.akstore-sp-container { max-width: 1100px; margin: 20px auto 80px; padding: 0 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
    .akstore-sp-grid { display: grid; grid-template-columns: 440px 1fr; gap: 24px; align-items: start; }
    .akstore-card { background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; padding: 16px; margin-bottom: 16px; }

    /* Force Swiper container to stay visible and block-level */
	.swiper.akstore-main-swiper { 
		width: 100% !important; 
		height: 380px !important; 
		border-radius: 8px; 
		background: #fafafa; 
		border: 1px solid #e2e8f0; 
		position: relative; 
		overflow: hidden;
		display: block;
	}

	/* Force the wrapper track to stretch */
	.swiper.akstore-main-swiper .swiper-wrapper {
		width: 100%;
		height: 100%;
		display: flex;
	}

	/* Force individual slides to take full width and avoid collapsing */
	.swiper.akstore-main-swiper .swiper-slide {
		width: 100% !important;
		height: 100% !important;
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Ensure images scale correctly inside slides */
	.swiper.akstore-main-swiper .swiper-slide img { 
		width: 100% !important; 
		height: 100% !important; 
		object-fit: cover !important; 
		display: block !important;
	}
		

    /* Cover Thumbnails Track */
    .akstore-thumbs-header { font-size: 13px; font-weight: 700; color: #475569; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.03em; }
    .akstore-variant-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
    .akstore-vthumb { width: 64px; height: 64px; border-radius: 8px; border: 2px solid #cbd5e1; cursor: pointer; flex-shrink: 0; overflow: hidden; position: relative; transition: all 0.2s; }
    .akstore-vthumb.active { border-color: #9c27b0; transform: scale(1.03); }
    .akstore-vthumb img { width: 100%; height: 100%; object-fit: cover; }
    .akstore-vthumb-count { position: absolute; bottom: 0; right: 0; background: rgba(0,0,0,0.65); color: #fff; font-size: 10px; padding: 1px 4px; border-top-left-radius: 4px; font-weight: 600; }

    /* Details & Pricing */
    .akstore-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.4; }
    .akstore-price-row { margin-bottom: 12px; font-size: 20px; font-weight: 700; color: #9c27b0; }
	.mrp-price { margin-left: 5px; font-size: 14px; font-weight: 500; color: #555; }
    .akstore-short-desc { font-size: 14px; color: #555; line-height: 1.5; margin-top: 10px; border-top: 1px dashed #e2e8f0; padding-top: 10px; }

    /* Size Selector Pills */
    .akstore-size-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; min-height: 40px; }
    .akstore-size-btn { min-width: 48px; height: 40px; padding: 0 16px; border: 1px solid #cbd5e1; border-radius: 20px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
    .akstore-size-btn.active { border-color: #9c27b0; color: #9c27b0; background: #f3e5f5; }

    /* Actions */
    .akstore-actions { display: flex; gap: 12px; margin-top: 16px; }
    .akstore-btn-add { flex: 1; background: #fff; color: #9c27b0; border: 1px solid #9c27b0; padding: 14px; font-size: 15px; font-weight: 700; border-radius: 8px; cursor: pointer; }
    .akstore-btn-buy { flex: 1; background: #9c27b0; color: #fff; border: none; padding: 14px; font-size: 15px; font-weight: 700; border-radius: 8px; cursor: pointer; }
    .akstore-btn-add:disabled, .akstore-btn-buy:disabled { opacity: 0.6; cursor: not-allowed; }

    /* Tabs Styling */
    .akstore-tabs-header { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 16px; }
    .akstore-tab-btn { padding: 10px 16px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
    .akstore-tab-btn.active { color: #9c27b0; border-bottom-color: #9c27b0; }
    .akstore-tab-content { display: none; font-size: 14px; color: #444; line-height: 1.6; }
    .akstore-tab-content.active { display: block; }
	/* Clean Product Description Tab Lists */
	.akstore-tab-content ul,
	#description ul {
		margin: 12px 0 16px 0;
		padding-left: 20px;
		list-style-type: disc;
	}

	.akstore-tab-content ul li,
	#description ul li {
		font-size: 14px;
		line-height: 1.6;
		color: #334155;
		margin-bottom: 6px;
	}

	/* Optional: Make Key Features headers or bold text stand out */
	.akstore-tab-content strong,
	#description strong {
		color: #0f172a;
		font-weight: 600;
	}

    @media (max-width: 768px) {
        .akstore-sp-grid { grid-template-columns: 1fr; }
        swiper.akstore-main-swiper { height: 380px; }
    }	

.ak-shop-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ak-shop-header { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; }
.ak-shop-title { font-size: 28px; font-weight: 700; color: #0f172a; }
.ak-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.ak-product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.ak-product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.ak-product-thumb { position: relative; width: 100%; height: 260px; background: #f8fafc; overflow: hidden; }
.ak-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-card-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.ak-icon-btn { background: rgba(255, 255, 255, 0.9); color: #334155; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.15s; }
.ak-icon-btn:hover { background: #2563eb; color: #fff; }
.ak-product-details { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.ak-product-name { font-size: 15px; font-weight: 600; color: #1e293b; text-decoration: none; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-product-name:hover { color: #2563eb; }
.ak-product-price { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 16px; }
.ak-btn-cart { margin-top: auto; display: block; width: 100%; text-align: center; background: #9c27b0; color: #fff; padding: 10px; font-weight: 600; font-size: 14px; border-radius: 6px; border: none; cursor: pointer; transition: background 0.15s; }
.ak-btn-cart:hover { background: #1d4ed8; }
.ak-add-wishlist.active {
    color: #ef4444 !important; /* Turns red when active */
}
/* =================================================_
   AK Shop & Category Header & Grid Styles
   ================================================= */

.ak-shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Shop Header Styling */
.ak-shop-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.ak-shop-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.ak-shop-description {
    font-size: 1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Responsive Product Grid */
.ak-product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    gap: 20px;
}

/* Tablet view (2 columns) */
@media (min-width: 576px) {
    .ak-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Laptop/Desktop view (3 columns) */
@media (min-width: 992px) {
    .ak-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop view (4 columns) */
@media (min-width: 1200px) {
    .ak-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card Component */
.ak-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ak-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.ak-product-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a 1:1 square aspect ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.ak-product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Actions (Wishlist/Compare) */
.ak-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ak-icon-btn {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s;
    color: #64748b;
}

.ak-icon-btn:hover,
.ak-icon-btn.active {
    background: #ef4444;
    color: #ffffff;
}

/* Product Details */
.ak-product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ak-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Keeps alignment clean across cards */
}

.ak-product-name:hover {
    color: #2563eb;
}

.ak-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* Action Button */
.ak-btn-cart {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto; /* Pushes button to bottom */
}

.ak-btn-cart:hover {
    background: #1e293b;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .ak-shop-header {
        padding: 16px;
    }
    .ak-shop-title {
        font-size: 1.5rem;
    }
}