/*
Theme Name: Woostify Child
Theme URI: https://woostify.com/
Template: woostify
Author: Woostify
Author URI: https://woostify.com/about
Description: A child theme for the Woostify theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: woostify-child
*/

/* Custom Variables */
:root {
    /* Culori principale */
    --color-primary: #2C3E50;      /* Albastru închis pentru text și elemente principale */
    --color-secondary: #3498DB;    /* Albastru deschis pentru accente și hover */
    --color-accent: #E74C3C;       /* Roșu pentru call-to-action și elemente importante */
    
    /* Nuanțe de gri */
    --color-gray-100: #F8F9FA;     /* Cel mai deschis, pentru fundaluri */
    --color-gray-200: #E9ECEF;     /* Pentru borduri și separatori */
    --color-gray-300: #DEE2E6;     /* Pentru umbre și elemente inactive */
    --color-gray-400: #CED4DA;     /* Pentru text secundar */
    
    /* Culori pentru stări */
    --color-hover: rgba(52, 152, 219, 0.1);     /* Albastru transparent pentru hover */
    --color-overlay: rgba(44, 62, 80, 0.7);     /* Overlay semi-transparent */
    --color-white: #ffffff;                      /* Alb pur pentru contrast */
    
    /* Bootstrap colors - updated to match our scheme */
    --bs-primary: var(--color-primary);
    --bs-secondary: var(--color-secondary);
    --bs-success: #27AE60;
    --bs-info: #3498DB;
    --bs-warning: #F1C40F;
    --bs-danger: var(--color-accent);
    --bs-light: var(--color-gray-100);
    --bs-dark: var(--color-primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: white;
}

.hero-title {
    font-weight: 700;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.category-image {
    height: 200px;
    object-fit: cover;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.product-card .card-img-top img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--bs-primary);
    font-weight: 600;
}

.product-price del {
    color: var(--bs-secondary);
    opacity: 0.7;
    font-size: 0.9em;
    margin-right: 0.5rem;
}

.product-price ins {
    text-decoration: none;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--bs-light);
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: darken(var(--bs-primary), 10%);
    border-color: darken(var(--bs-primary), 10%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-image,
    .product-card .card-img-top img {
        height: 150px;
    }
}

/* WooCommerce Integration */
.woocommerce ul.products li.product .price {
    color: var(--bs-primary);
    font-weight: 600;
}

.woocommerce span.onsale {
    background-color: var(--bs-danger);
}

/* Fix potential conflicts */
.card {
    margin-bottom: 0;
}

.btn {
    text-transform: none;
}

/* Add your custom styles below this line */

.product-item {
    transition: .5s;
}
  
.product-item:hover {
    box-shadow: 0 0 30px var(--color-gray-300);
}
  
.product-item:hover .product-action {
    background: var(--color-hover);
}

.product-action {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}
  
.product-action a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.product-item:hover .product-action a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}
  
.product-item:hover .product-action a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}
  
.product-item:hover .product-action a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}
  
.product-item:hover .product-action a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}
  
.product-item .product-img img {
    transition: .5s;
}
  
.product-item:hover .product-img img {
    transform: scale(1.2);
}
  
.product-item .btn:hover {
    color: var(--color-accent) !important;
}
  
.table.table-borderless thead tr,
.table.table-borderless tbody tr:not(:last-child) {
    border-bottom: 15px solid var(--color-gray-100);
}
  
.contact-form .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
  
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 11;
    animation: action 1s infinite alternate;
}
  
@keyframes action {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-15px);
    }
}