/* Shop Page Styles */

/* Main Container */
.shop-container {
    min-height: 100vh;
    background-color: black;
}

.shop-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.shop-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

.shop-controls {
    display: flex;
    gap: 1rem;
}

/* Filter and Sort Buttons */
.filter-button,
.sort-button {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
    background-color: black;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.filter-button:hover,
.sort-button:hover {
    background-color: #374151;
}

.filter-button:focus,
.sort-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(55, 65, 81, 0.5);
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: relative;
    height: 420px;
    width: 18rem;
    margin: 0 auto;
    justify-content: space-between;
    overflow: hidden;
}

/* Product Badge */
.product-badge {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.badge {
    background-color: #1d4ed8;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
}

/* Product Image Container */
.product-image-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    height: 8rem;
    background-color: transparent;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.product-image {
    object-fit: contain;
    max-height: 50%;
    max-width: 50%;
    margin: auto;
    width: auto;
    height: auto;
}

/* Product Title */
.product-title {
    color: white !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
}

.product-title a {
    color: white !important;
}

/* Product Labels */
.product-labels {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.label {
    color: #9ca3af;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Price Section */
.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: auto;
    padding-top: 0.5rem;
}

.price {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sale-price {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
}

.regular-price {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

/* Add to Cart Button */
.add-to-cart-form {
    width: 100%;
    margin-top: 0.25rem;
}

.add-to-cart-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1d4ed8;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 100%;
    justify-content: center;
    transition: background-color 0.2s;
}

.add-to-cart-button:hover {
    background-color: #1e40af;
}

.add-to-cart-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px white;
}

/* Dropdown Menus */
.dropdown-menu {
    z-index: 10;
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 11rem;
    border-top: 1px solid #374151;
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #e5e7eb;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.dropdown-item:hover {
    background-color: #374151;
}

.dropdown-radio {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
    background-color: #374151;
    border-color: #4b5563;
    border-radius: 50%;
}

.dropdown-radio:focus {
    box-shadow: 0 0 0 2px #2563eb;
}

.dropdown-label {
    width: 100%;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    border-radius: 0.25rem;
}

/* Error Messages */
.error-message {
    color: white;
}

/* Shop Page Custom Styles */

/* Product Image Container with Tilt Effect */
.product-image-container {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Ensure product titles are always white, override Elementor */
.grid .text-white,
.grid .text-white a,
.grid .text-white a:visited,
.grid .text-white a:active,
.grid .text-white a:hover {
    color: #fff !important;
}

/* Ensure text colors are preserved */
.text-white {
    color: white !important;
}

/* Ensure line clamp works in all browsers */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
} 