/*
Theme Name: Gadget Drive
Theme URI: http://example.com/gadget-drive
Author: Antigravity
Author URI: http://example.com
Description: Converted HTML Template to WordPress Theme for GadgetDrive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gadget-drive
Tags: electronic, ecommerce, woocommerce
*/

/* Custom Styles */
.btn-main.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}
.btn-main.btn-whatsapp:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    color: #fff !important;
}

/* ================= Mind Blowing Product Card V2 ================= */

/* Card Container */
.product-card-premium-v2 {
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-premium-v2:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    z-index: 10;
}

/* Image Wrapper */
.product-card-thumb-wrapper {
    height: 260px; /* Taller, premium feel */
    background-color: var(--gray-50);
    border-radius: 12px;
}

/* Image Transitions & Sizing */
.product-thumb-primary,
.product-thumb-secondary {
    max-width: 160px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-thumb-secondary {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
}

.product-thumb-primary {
    transform-origin: center center;
}

/* Hover Effects: Image Swap */
.product-card-premium-v2:hover .product-thumb-primary {
    opacity: 0;
    transform: scale(0.9);
}

.product-card-premium-v2:hover .product-thumb-secondary {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* if no secondary image, just scale primary */
.product-card-premium-v2:not(:has(.product-thumb-secondary)):hover .product-thumb-primary {
    opacity: 1;
    transform: scale(1.1);
}

/* Floating Action Bar */
.product-actions-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 16px;
    min-width: max-content;
}

.transform-y-120 {
    transform: translate(-50%, 120%);
    opacity: 0;
}

.product-card-premium-v2:hover .product-actions-bar {
    transform: translate(-50%, 0);
    opacity: 1;
    transition-delay: 0.1s;
}

/* Action Buttons */
.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 72, 237, 0.2); /* Tint shadow with main color */
}

/* Typography V2 */
.product-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: 0.3s;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
}

.product-card-premium-v2:hover .product-title a {
    color: var(--main-600);
    background-size: 100% 1px;
}

.product-price {
    letter-spacing: -0.5px;
}

/* Tooltip Fixes */
.tooltip-inner {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* ================= Shop Archive Page Design ================= */

/* Shop Header */
.shop-header {
    position: relative;
    background-color: var(--gray-50); 
    /* Optional: Add a subtle pattern or gradient here if desired */
}

/* Custom Breadcrumbs */
.breadcrumb-custom .text-main-600 {
    color: var(--main-600) !important;
}

.breadcrumb-custom a:hover {
    color: var(--main-600) !important;
    transform: translateY(-1px);
    display: inline-block;
}

/* Shop Toolbar */
.shop-toolbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    transition: all 0.3s ease;
}

.shop-toolbar:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* View Toggle Buttons */
.view-btn {
    color: var(--gray-400);
}

.view-btn.active {
    background-color: var(--main-50);
    color: var(--main-600);
    border-color: var(--main-100) !important;
}

.view-btn:hover:not(.active) {
    background-color: var(--gray-50);
    color: var(--gray-600);
}

/* Sidebar Wrapper */
.shop-sidebar-wrapper {
    /* Sticky sidebar behavior for desktop */
    position: sticky;
    top: 20px; 
    z-index: 10;
}

/* Blog Pagination */
.pagination {
    margin-top: 48px;
}
.pagination .nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.pagination .page-numbers {
    height: 64px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    color: #4b5563; /* text-neutral-600 */
    border: 1px solid #f3f4f6; /* border-gray-100 */
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--main-600);
    color: #fff;
    border-color: var(--main-600);
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 1.5rem;
}

.last-child-0:last-child {
    margin-bottom: 0 !important;
}

/* ================= Premium Standard Page Typography ================= */

/* Wrapper */
.premium-typography {
    color: var(--gray-600, #4b5563);
    font-size: 1rem;
    line-height: 1.7;
    font-family: var(--font-body, inherit);
}

/* Headings */
.premium-typography h1, 
.premium-typography h2, 
.premium-typography h3, 
.premium-typography h4, 
.premium-typography h5, 
.premium-typography h6 {
    color: var(--heading-color, #111827);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.premium-typography h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
.premium-typography h2 { font-size: 2rem; letter-spacing: -0.01em; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-100, #eee); }
.premium-typography h3 { font-size: 1.5rem; }
.premium-typography h4 { font-size: 1.25rem; }
.premium-typography h5 { font-size: 1.125rem; }
.premium-typography h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

.premium-typography h1:first-child,
.premium-typography h2:first-child {
    margin-top: 0;
}

/* Paragraphs */
.premium-typography p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.premium-typography strong {
    color: var(--heading-color, #111827);
    font-weight: 600;
}

/* Lists */
.premium-typography ul, 
.premium-typography ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.premium-typography ul li, 
.premium-typography ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

.premium-typography ul {
    list-style-type: disc;
}

.premium-typography ol {
    list-style-type: decimal;
}

/* Links */
.premium-typography a {
    color: var(--main-600, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s;
}

.premium-typography a:hover {
    color: var(--heading-color, #111827);
}

/* Blockquotes */
.premium-typography blockquote {
    border-left: 4px solid var(--main-600, #2563eb);
    background-color: var(--gray-50, #f9fafb);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--heading-color, #111827);
}

.premium-typography blockquote p:last-child {
    margin-bottom: 0;
}

/* Images & Media */
.premium-typography img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
}

.premium-typography figure {
    margin: 2rem 0;
}

.premium-typography figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400, #9ca3af);
    margin-top: 0.5rem;
}

/* Table */
.premium-typography table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.premium-typography table th,
.premium-typography table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-100, #e5e7eb);
    text-align: left;
}

.premium-typography table th {
    background-color: var(--gray-50, #f9fafb);
    font-weight: 600;
    color: var(--heading-color, #111827);
}

/* HR */
.premium-typography hr {
    border: 0;
    border-top: 1px solid var(--gray-100, #e5e7eb);
    margin: 3rem 0;
}

