/* Shopify-style UI Refinements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-font: 'Inter', sans-serif;
}

body {
    font-family: var(--primary-font);
    font-size: 13px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: #f9fafb;
}

/* Global Layout & Padding */
.max-w-7xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 640px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Product Card Styling */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; /* Base for positioning */
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* The Link Overlay - FIXED: Absolute positioning to cover card but stay below button */
.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: block;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* PERFECT SQUARE (1:1) */
    overflow: hidden;
    background-color: #f9fafb;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
    position: relative;
    z-index: 5;
}

.product-info h3 {
    min-height: 2.8em;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.product-info p {
    margin-bottom: 10px;
}

.atc-btn-container {
    padding: 0 16px 16px 16px;
    margin-top: auto;
    position: relative;
    z-index: 20; /* HIGH Z-INDEX to stay above the card link */
}

.smart-atc-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.smart-atc-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.smart-atc-btn:active {
    transform: scale(0.95);
}

/* Forms & Inputs */
input, select, textarea {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    border: 1px solid #e5e7eb !important;
    font-size: 13px !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #000 !important;
    ring: 0 !important;
    outline: none !important;
}

/* Breadcrumbs Styling */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.breadcrumb a {
    color: #4b5563;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb-separator {
    font-size: 8px;
    color: #d1d5db;
}

.breadcrumb-current {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 768px) {
    body { font-size: 12px; }
    section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}